Added a lot of infrastructure code

Also removed a lot of worthless code in NetworkManager, 99% of the
remaining code is still unnecessary but am too lazy to dig it out.

MicrophoneListener.cs is no longer used but hasn't been deleted yet.