Implement attach/detach command.

* "attach" : Attach gistid to the specified filename.
* "detach" : Detach gistid from the filename of the current buffer.