Structural improvements

* Automatic reformatting for most templates
* Now under Apache V2
* Adds LICENSE file