Downgrade rails to 3.2.12

A regression was added between Rails 3.2.12 and 3.2.13 which fails to correctly issue PUT requests over SSL that have a body greater than 16K.

Revert to the previous version of Rails and apply the security fixes directly :disappointed_relieved: