getlantern/lantern#2045 Added support for hooking into connections to server (to facilitate stat reporting)