Topology refactor / Standalone mode

* Centralizes as much of the topology logic as possible into the `TopoHelper` class (in `ec-common/libraries/topo_helper.rb`)
* Enables standalone topology (actually works)
* Support Analytics node in a much less hacky way
whoops!   Fairly innocuous, speeds up initial sync so I'd rather leave it in.