fix duplication of gateway nodes
improve/fix gateway connectivity finder
changed SND constant, does not change behavior much
added debugging facilities: death handler prints backtraces, gateway coloring, topo map, proper exception handling