Some cleanups.
Added pruning of stale routes.