commands: refactor editor commands into gb-editor-commands.c

This should make it easier so we don't need to concern ourselves so much
with whether we are in the tab or workspace file.