Added an untested net library

Adds networking functions