Modify SGS attachment routes to use gateway_json_response

Addresses concerns raised in #919