Created a simple RPC mechanism.

The simple RPC mechanism is statically typechecked by the compiler,
through the use of templates.