Added support for additional template engines

I moved template processing out to templateManager.js which knows how to process the template string based on the file extension. Currently it supports ejs, handlebars, swig, and jade. If there are any I missed let me know. When I get more time I can extend this to also process pre-processed CSS like less or styl.