An AngularJS service that creates a modal popup with view and controller