tests, travis ci and build status.

first round of unit tests using mocha/should and nock.

also added `.travis.yml` with build status in readme for master and dev branch only.