Initial definition of templates.go file.
Ran goimports to fix formatting.
Added templates_test.go.
Added magnets2* example files.