Template registry

@coonsta, PTAL?