Various fixes

* Use "r" with 'interactive to get region extents
* Use standard header
* Use defgroup/defcustom
* Inline "exec-command" function