Add Travis CI support

The tests can now be run with nose. Also, the code has been cleaned up to pass PEP8. Added the MIT License