User:Aaron Schulz/deletion

On delete, move `page` entry to `deleted_pages` and set rev_deleted to 1+2+4 = 7 for all revisions rows to add a layer of protection.

On restore, move back to `page` and fill in other columns based on the last rev. Remove rev_deleted for restored revs.

Special:Restore will be used, with Special:Undelete kept around for B/C.