Feature/update ui bootstrap modals

Changes to component-storage-loader for an updated directive using ui-bootstrap
Why do we need to add window events?  Shouldn't the $modalInstance.dismiss in the scope on line 51 handle it?