Registers templates with setuptools

See issue #37 for details.