Refactor RecentURLsMenu and related classes (and rename them to RecentResourceNameMenu and similar)