Added network support (from Portable fo-dicom)

Still a set of TODOs to deal with before network implementation can be
considered complete