Split AngularJS definitions into multiple files

Splitted the AngularJS code into multiple files to get some structure.
In the future we'll probably want to split it up even further, but IMHO
this'll suffice for now.