Use transition_post_status rather than save_post for main hook

This lets us distinguish the new status of `publish` immediately
Update docblock
Add handling for document deletion when post status is not publish