Rewind the request.body to work an issue in Rails 4.0.0. Backwards compatiable with Rails 3.x
Default and constrain requests to json format