Support tests in Travis CI and locally through 'npm test'

* Update .travis.yml, package.json to allow Travis CI to run unit tests. This also allows developers to run unit tests locally with just `npm test`. 
* Added 4 new unit tests against the log factory service as a proof-of-concept.

Comments welcome.