New network code - Completed enough to pull into master. Few bugs that exist