Remove dead error handling code.

Now that AppdirectGateway is deployed and uses the nice json error
format, we don't need the old code that was kept around for backwards
compatibility.

[Finishes #55321874]