[services/net/federation] rewrite federation to hijack the bot's IOLoop