Depending on the scope. Let's recall the most significant extensions we may need to add to Codex, if we would like Codex client to provide an experience similar to that of BitTorrent:
Once we have this, we can start incrementally realise the Codex/BitTorrent integration. E.g. we can start with integrating Codex as it is and then incrementally add extensions we want to support. This approach would allow us to bootstrap the session management.