Connect/Express middleware for tracking which links should be active in a view or layout.