Compatibility changes for Spree 2.1+ / Rails 4

Fix for breaking incompatibilities with attr_accessible (removed from Rails 4) and routes (changed in Spree 2.1); some extra refactoring.