Added logging for most page operations
Make sure pages are unpublished before delete

Fixes #570