refactoring dhcp code
more cleanup of dhcp
core network code changes and fixes, restructured monitor code