Configure 'npm test' to run Mocha tests with Karma

Run tests Karma with both Firefox and PhantomJS.

Signed-off-by: Alex Coles <alex@alexbcoles.com>