Karma

karma unit and integration tests, pre commit hook

@bigsley @igorT @ppong