Added npm package file
Added Travis CI config
Added test suite and implemented library accordingly