Added .travis.yml and shortened sha1.js

With  .travis.yml  tests can be run on [travis-ci.org](https://travis-ci.org/duzun/js-crypto/jobs/42196993).