Add angularjs code to open and close dialogs.

Includes logic to update and listen to popover query parameter as broadcast currently does. Uses ngDialog angularjs module. Next step should be to convert/remove broadcast global object.