major rewrite, again.

encode/decode now async,
munia very plugin-centric (not even RPC is in core)
munia can both emit events, and trigger plugin hooks