Adding Travis CI support

Add a travis config for testing. Addresses #4.
Also rearrange the project structure a bit.