Migrate to Rails 4

Rails 4.1.7. Also migrate to Rspec 3. Used transpec gem to convert tests to `expect` syntax.