Added thread management to NetworkManager

Currently broken in this check in. Too many stop and starting threads!