Added support for using freemarker templates for resource requests

Added support for serving freemarker content from resource requests.