Implement crappy parsing of network blocks.

This should work but its really not pretty.
Fix crappy parsing so it actually works.
Add edit mode. Some minor cleanup.
Temporarily remove the --directory option from add.
Ignore more useless stuff.