utils: add ability to edit a region into another buffer

This works a bit like what is done in org-src but this is far more
basic.