Adding networking. WIP.
Merge conflicts resolved.