add a /edit command to run editor on buffer
move editing code into subroutine
Merge pull request #5 from dbushong/edit-command

/edit command