move templates to separate packages, with database/sql-like registration pattern on init()