Started working with network.

Nothing added yet, just preparing the code to networking, and working in
make it compatible.