Fixed a bug that will get undefined when permission is not set
Added datasource factory to facilitate Models datasource configuration
Fixed a bug where Model breaks loading if a loader function returns non-promise value
Fixed code style