Use Connection.

Change-Id: I686fa90b81cb8af49ec7a0f7d7f390825b0fe51e
Depends-On: Ib42aeb25d72b5412ad98fe80bd6726896d423504
Reviewed-on: http://gerrit.dmdirc.com/3434
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Build Manager