Minor fixes from refactoring

* Use prototype for dialogs and notification api
* Added some docs