Make server/client distinction environment-agnostic

Per our earlier discussions, needed to be able to run a server in the browser for games over webrtc