The way it looks now, a self-hosted gogs with a nojs patch may be the way forward. The application-specific part (gogs.js) is <2kloc and it's already rendering stuff on the server. I'm giving it a few weeks before I've had enough...
Only thing I really miss vs. github is there's no code review built-in.