Template Generator overhaul

Surprisingly I find myself actually using this.

* Separated out styles and scripts for better maintainability
* Remember previous templates using localstorage
* UI update

TODO:
* non drag/drop option