PLD: add kibit
PLD: refactor based on kibit suggestions
PLD: test that code does not raise any static analysis warnings
PLD: remove commented js ref
PLD: remove karma testing until it works with om
Merge pull request #570 from onaio/refactor

Refactor