Unit testing, more linting

- Factored out CognicityReportsPowertrack into separate object for
testability
- Include daemon.js in jshint run and fixed jshint issues
- Updated build scripts to include 'mocha' unit test script, and test
script runs jshint and mocha
- Added TODOs
- Included mocha and unit.js dependencies for unit testing
- Added first unit tests, for i18n function