Add Travis CI, fix broken specs

This PR contains a CI configuration for Travis along with fixes for a number of failing or broken specs. Here's an example of 1060 out of 1097 specs passing on Travis with 37 specs skipped: https://travis-ci.org/md5/inaturalist/builds/14968395

Let me know if you'd like me to amend the PR to just have the test fixes.