Further refactoring of filebrowser-popup.js

* Now popup is namespaced under mediaLibrary.
* Only initialisation happens on document ready, while opener function is available in the global context.
* Callback execution is now asynchronous to cater for certain editors.
* Added a compatibility alias so that existing libraries can keep using it.