Loosened the dependencies to allow Rails 3.2, and fixed deprecation warnings.