Adding compatibility with Rails 4. Keeping compatibility with rails 3. Adding support for strong parameters. Fixing form_for which does not allow nil objects(resource). Fixing generators.