Make sure the build command in the client sends auth credentials along

The build command now sends the auth credentials block properly encoded into the ```X-Registry-Config``` header. This allows Dockerfile builds that pull FROM private registries such as Quay to succeed. This change also adds a test for the aforementioned build case.