network: restructured; does not compile yet

depends on storage
Merge pull request #98 from mvidner/network

network: restructured; does not compile yet