Added some configuration of how template start scripts are generated.

* Use same classpath ordering as sbt in start scripts
* Allow user configuration of additional hooks for the script.

Review by @huntc to see if we're any closer to parity with Play.