Fixing package.json, adding unit tests.
Adding travis CI config.