Retry on S3 HTTP 504 Gateway Timeout status codes

RiakCS using the S3 interface occasionally surfaces these status
codes.