rework how request params are extracted so that json params are properly extracted in rails 4.0