Added MarkNetworkAsStable and WaitForStableNetwork (wip)
Merge remote-tracking branch 'origin/next' into local_network_controller_test
Compiler fixes.
Added function to allow waiting for local network to stabilise.