fixed panic issue (IO failure leading to failure to discover topology
instance, returning nil instance). It's OK to get the nil instance, we
just then don't dereference the pointer...
Refactores a lot of JS code, shared between search & cluster, into
orchestrator.js. This includes rendering the instance element, creating
the topology map & tree, merging maintenance instances and more.