Fixed bugs. Removed Rails 3 support.