Adds Travis CI integration

Also adds a few changes that were causing Travis CI failures and
confusing/unnecessary warnings.