Implements base routing infrastructure.