Adds QUnit testing and uses npm and bower for dependencies

This switches to QUnit for testing and uses npm and bower for dependencies.