Reorganized, enhanced net-settling code

In addition to reorganizing the code, added actual settling iterator
code in settle-net (untested).

Also revised main/init.