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 even further, but IMHO
this'll suffice for now.
Merge pull request #593 from garberg/split_ng

Split AngularJS definitions into multiple files