New command 'listpages' to list the pages in one or all spaces