Tons more netcode. Started work on tests.