Implement list_categories_for_entry endpoint. bugid:111790