The network code has been put in its own file.

The directory structure has changed to accomodate this.