genapi: start implementing a doc-based RPC API generator.