Feature/alternative template generation

Feature branch, rather than my master.

Replacement for https://github.com/robmorgan/phinx/pull/407
Pretty sure these `$s` should be `%s`.