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

Useful for getting page ids, etc!