add gogs support
Merge pull request #666 from compressed/gogs

Add gogs support