Added template loading from resource-repository
Moved code to core module and added client modules