Mark menu items and categories as "active" based on their routes

This allows for easier frontend integration to mark the items active in the menu.