Simple AngularJS Factory for the creation of modal dialogs.