Remove unused code
Fix broken tests
Fix reverse domain assignment; use safe_save and safe_delete

Also refactor zone rebuild scheduling methods.