AngularJS: Unit Tests

While end-to-end tests are still on the way, I thought it would be nice to have some progress on #254.

I added tests that cover (hopefully) all of the controller and directives logic. I had to upgrade to 1.0.4 in order to test one directive correctly.

I'd love to hear your thoughts.