A little housecleaning.
Added Travis CI stuff.
Moved tests and added Makefile/requirements.
Some more housecleaning.
Mock-based testing. Travis CI badge. A small bug fixed.