Test against both Rails 3 and Rails 4

Uses [the appraisal gem](https://github.com/thoughtbot/appraisal) to manage this.