Modifying app_resource to accept application/x-www-form-urlencoded as well as multipart/form-data.