Add support for content negotiation for async-based RPC servers
This has already be done for regular (sync) servers, but is still needed to help playing with RPC endpoints from the cmd line, and especially to help writing installation documentation and/or write supervision probes (much easier to have json ouput than msgpack one in these contexts.)
Migrated from T1871 (view on Phabricator)