Add 'number of pages' config for DeleteItemPage

Future functionality (like right click -> delete) will require
DeleteItemPage to only go back a single page, so this allows callers to
specify the number of pages it goes back.
Minor code cleanup

Mostly based on code issues suggestions made by SharpDevelop.