java: start message support
lib/java: ForwardingInputProtocol, ForwardingOutputProtocol
java: further protocol cleanup