Added travis integration

In order to use the TravisCI platform for automated testing, a few changes needed to be made to the codebase.