Rails4 backend upgrade

This gets the backend controllers and helpers build down to 1 spec failure which I think is related to a ransack bug so I'll just investigate a little bit more and try to submit a fix to ransack or ask for help there.