shifted dump into functions as a global function.
New library with the beginning of the client API for client <-> server messaging.