adapted gemspec and container.rb to support Rails 4

Adapted the gem to work in Rails >= 3.0 instead of ~> 3.0 so it supports Rails 4.

Works without any code modification when moving from Rails 3 to Rails 4 in my web application.