Use Rails 3 as Rails 4 is not yet supported

Explicitly require Rails 3 in the gemspec: since Rails 4 was released this doesn't build properly (there is no Gemfile.lock checked in, so this is proper).