Completed removal of net.cpp's dependency on main.h.
Added explicit include of main.h in init.cpp. Added function registration for net.cpp in init.cpp's network initialization.