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.
Yes, so when we have multiple repositories, some repositories won't contain the template you're looking for, therefore will return no results (reader.maxDoc == 0)