utils: use a minor mode for edit-region stuff
utils: fix window configuration restore for edit-region