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.
i'm not clear on how sourceuri vs sourceref is used, can you add some more doc here?