Use Rex::Compat.getenv instead

Also, this would deprecate out the editor plugin.
Remove the editor plugin.

Sorry, @jcran, didn't see that this was available. Turns out, this
feature is almost identical to the editor plugin, so this effectively
promotes 'edit' to a first class command.