Added a test environment and created tests

* Created a test environment with Karma and Chrome
* Added some tests for jquery-xblock with mocha, chai and sinon.js.

The lib is not yet fully covered, but that's a good start.