Move template files to resources.
Move middleware wrapping out of -main.
Bump version numbers for template.
Release 0.2.2 of template.