client (AMF) request processing

This adds client request handling (AMF deserialization and forwarding
to a request processing function within a dedicated request context),
as well as some minor refactoring and enhancements to logging.