Added travis build config and js
removed whitespace
Added package caching and fixed 'main' in package.json.
Merge pull request #195 from sclements/master

Add configuration and a script to auto-build with travis-ci