Move out all the Locator dependencies into inline files.

All the Locator dependencies, such as Routing and Synchronization, are
moved out into separate inline source files. Someday we might as well
move them to separate compilation units.