UserCollection: make password-hashing monkey-patch-able
Allow functions to be added to collection script domain
made Collection.addScriptDomainFunction static