WIP: Add support for marking domains and records as disabled

Also misc. cleanup before that.