Port of actionwebservice (AWS) to the latest Rails version