registry/endpoint: make it testable

Signed-off-by: Vincent Batts <vbatts@redhat.com>

Docker-DCO-1.1-Signed-off-by: Vincent Batts <vbatts@redhat.com> (github: jfrazelle)
Intro to team meta

Docker-DCO-1.1-Signed-off-by: Michael Crosby <crosbymichael@gmail.com> (github: jfrazelle)
Initial script with nginx.

Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)