MODEL-EXTENSION-FIXES

Moved casting and castable functions to domain.xqy
Changed default behaviour for searchable to true by default
Changed hashing to use domain:hash
Fixed issues in reference functions
Merge branch 'master' of https://github.com/nativelogix/xquerrail2.framework