Implements the given interface by forwarding all public methods to a REST server.
The server must talk the same protocol as registerRestInterface() generates. Be sure to set
the matching method style for this. The RestInterfaceClient class will derive from the
interface that is passed as a template argument. It can be used as a drop-in replacement
of the real implementation of the API this way.