Small formatting changes.
Rename modules variable to k_modules to avoid conflicts.
Check if the program specified in EDITOR is available.
Allow to override EDITOR in ari.conf.