Move mutable state in Connection to single field and make a MonadState instance for (Connected IO a)
Move mutable state in Connection to single field and make a MonadState instance for (Connected IO a)

..also add lenses

pxqr/bittorrent,DavidAlphaFox/bittorrent