Various fixes

* Use "r" with 'interactive to get region extents
* Use standard header
* Use defgroup/defcustom
* Inline "exec-command" function

See https://github.com/milkypostman/melpa/pull/1387