Implemented autoload and collection creation on DbResourceManager.

Created Template resource and system bootstrap.