WIP: Add support for etcd registry.

_Work in progress. Please do *not* merge!_

This is initial support for the etcd service to be used as a registry.