minify js too
karma tests for entities and gateway
added sinon to tests
added some comments for showing testing variations for dummies