changed calls to render() to new template logic
add FileresourceLoader config, remove unsused method
changed calls to render to new template logic
use FileResourceLoader when possible