Rework the IRC implementation.

Also begin using lenses in the network controller.