Adds jasmine tests, mostly testing view.js and to a lesser extent, contr...

...oller.js