Setup framework for network stuff

Many thanks to the TConstruct team, as I copied these from their github.