Added registerTemplate to core, added custom template example

Created ability to use custom templates by specifying the
$template_templateName tag where templateName is the name of the
template that has been registered in the library.