AngularJS cleanup

* separate into files / modules
* remove unused
* spacing