QUnit tests

Added a few QUnit tests using `sinon.js`.
Also using scripts from npm dependencies instead of the `libs` dir.
Had to bump the grunt packages.