Build any git branch for docker projects.

Fixes #9.

I've been testing this at buildbot.opdemand.com and it's working as expected. I changed the docker image tag to be the first 10 digits of the git commit SHA to avoid potential name collisions.