docker-registry: transition to plugin architecture