add submodule basic support & buf fixed #478
Merge branch 'dev' of github.com:gogits/gogs into dev