Add travis-ci configuration

This has been tested to be working fine in the "travis" branch.
Closes #324.