Do not crach if a priority is not defined

Priorities can be disabled by the trac admin.  Only display the existing one.
Improve call to editor

Add a configuration item to define the editor.

Use subprocess.call() to avoid shell usage and escaping problems.

Check editor return value.