Added branch support, fixes #10. Changed scopes to request write access to gists.