add with-editor recipe

The next Magit release will use this library/package. But it is also useful on its own, so I am releasing it now.