Move extend and reachability code to the relay module

Most of the extend and reachability code is already in the relay module.

But some code was left behind in src/core/or/circuitbuild.c.