Jasmine unit testing

Basic implementation for #31.  It is not yet integrated into cmake, but for now you can setup with `npm install` and test with `grunt test`.