Make Registry public

This change set exports a Registry interface implemented by the local
registry type. I added TODO comments along the way with improvements
that could be done to reduce the surface area of a Registry's behaviour
and to make the code more orthogonal overall. I'd be glad to contribute
these changes over time, if you like the direction I propose.

This has been done on top of the `standard-exports` branch.

All tests pass except for the Linux specifc `/proc` related tests. I
suggest that we add linux specific build tags to those files.
`handlerName` is now not up to date anymore. You changed it to `name`.

Sidenote: Why are you changing variable names here? I appreciate if you prefer shorter names, but you are contributing to somebody else's codebase here. Why do you change style where it has nothing to do with your change, including changes at a really cosmetic layer, like handler -> hnd?