chore($urlRouter): add tests for location syncing
refactor($state): simplify include()
fix($state): sanity-check state lookups

 - Fixes #980