Improved editor selection.

- Try to start sensible-editor
- use 'EDITOR' environment for finding editor, if no sensible-editor is
  found.
- use 'vi' else