added support for multiple template git repositories

1. Tests for templates router might be broken.