Move server related code in ok.py to network/ package

Resolves #222 .
Can we call this messages.py? I think everything in this folder deals with sending data to the server.