Rails4 green core

At this point spree_core test suite is green on Rails 4. Please read commit message for some details.