Implemented configuration-based router, refactored navigation.