improved template functionality, changed routes a little to allow for a RESTful copying of templates