Added Mimetypes, fixes a null deref, js support

Added all common mimetypes when resolving files with
asset loader
Fixed a major bug in the BrowserManager where it would
 try to deference event object after it had been deleted
First support of javascript API binding but disabled at the
 moment