added skeleton network code, still need to decide who owns connection (and therefore who should store the shared_ptr).