added support for karma test runner and reorganized the templates folder