tests and travis ci

first round of unit tests using mocha/should and nock.

also added `.travis.yml`