Adding Travis CI and better tests.
Merge branch 'master' of github.com:daffl/miner