More cleanups to code.
Expanded the request-reply protocol with the key so as to allow for future extensions with multiple reply objects on a single port.