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.
So, on conflict, you just take the FIRST template from the FIRST repository which matches this id?

I think this is fine V1, but we may want a mechanism to analyze/issue warnings on multiple conflicts.