Update gistmate.rb

* Add request to get login name: fix wrong username, when the github.user value is an e-mail.
* Update getting gists: fix permission exception when trying to create files in the root path.