docker-registry: switch to plugin

Fixes #14 

/cc @dmp42 @ktintc @bshi