Added some unit tests

Also put the module on travis. You'll need to enable it through travis-ci.org
with your github credentials to actually kick off a build.
I've included a few variations of builds, haven't tested them all manually,
happy to fix if any of them should be broken on Travis.
I think you can kick off a build for this pull request specifically once travis is enabled.