Update the "Add New" menu to support adding of pages with an undefined parent. Update ProcessPageAdd to ask the user to select a parent when given a template.
Add @teppokoivula's suggested change to allow for InputfieldPage's findPagesCode option to return a single page in addition to the existing PageArray. When a single Page is returned, it is assumed to be a Parent, and the selectable pages become its children.