Modified server to work with current version of networking + various other fixes/changes