Implement the Error and NotFound helpers.

They follow the net/http interface using rest.* objects instead of http.* objects.
And they produce a response body in JSON.