Split cli-app-menu functons into libraries for category menus and application menus.