Dynamic menus work for anonymous and logged in users now, but not for
/admin or /chat. It badly needs refactoring.