pulse-server: add message handler to dump state
When the core object receives the 'internal:dump-state' message with any parameters, it will use the previously added debug facilities to dump the internal state of the server and send it back to the client.