Created NetworkThread class to reduce code duplication

Lobby will report errors if exceptions thrown by network threads