Added inproc function serialization

Added inproc function serialization. See the example using zeromq to
pass functions between a client and server threads.