Ride connected checks

This changeset implements the ride reachability check from scenario_update.
My commits seem to have been copied somehow but the diff seems to be correct, let me know if there's anything I can do about that.