Extended require dir functionality
minor refactoring
removed model registration
fixed forgotten requireDir impl
added models caching