Implement an @after(f) decorator

The decorator runs a function on the result of another function, replacing
the result value. This is intended to be used un routed functions from
omni.web.routing, e.g. to convert data into JSON.