Initial stab at build/test setup
Generate some docs via jsdoc

It would be oh-so-nice if ngdoc could be used outside the AngularJS build tree...
Split source up into individual services and start adding some tests

Also fixed a few minor bugs and added backwards compatibility support.