Fixes for builds

Correct host docker socket logic (it was doing docker-in-docker if
USE_HOST_DOCKER_SOCKET was set, and vice versa) and add unit test for it.

Add SourceRef to BuildInput and correct the STI build strategy to use
SourceURI and SourceRef appropriately.
Merge pull request #76 from ncdc/build-fixes

Merged by openshift-bot