Support for multiple template repositories

A working first stab at support for multiple template repositories. Main aim is to allow for internal company repositories so that company specific templates needn't pollute the public repository.
One approach could be to have a separate directory under "location" for each remote repo, naming the directories after the repo's url or a hash of the repo's url or something.