Add js helpers from usertoken

Adds bits used by usertoken to oss core:

* Ext.define
* Nexus.messages
* Ext.Image
* String.startsWith
* String.endsWith
* Ext.CallbackRef
* Nexus.currentUser