Re-organized netcode a bit: merged NetworkHandler with NetworkManager.