Not sure if it's what you're looking for but I self host gitolite on a VPS. Access and auth control is via ssh keys on its user on the server and its script there. Administration is via a git push. There are only git repos, no GUI. Git is the API.
Does git actually let you push over http? I'd imagine that's the same as using ssh/sftp just with WebDAV. If it's the same just create a bare repo in a directory your web server has access to.
I haven't looked into it but I don't think it's enough to build app on top. Otherwise there wouldn't be a bunch of libgit2 binding. Github is basically building around libgit2 (Rugged) and some of its custom stuff + collaboration UI. It's quite surprising no one has ever built libgit2 as a api service .. yet.