VDI-1212: Added karma tests to project

To execute: ./run-tests.sh | npm test | make tests
Uses mocha, sinon, chai.