Revamped build and test systems.

Upgraded to jasmine 2.x. Upgraded all build dependencies. Moved to grunt-driven test running rather than specrunner.html. Added travis ci file. Added phantomjs test running.