Start converting registry usage to an array.

No where near completion, but this is something that we've been needing to do for a while.

It replaces usage and typehinting for `Registry` with simple array access. This makes our packages more flexible, in that it's no longer required to use the Registry package in order to use the packages. This is another step towards a more de-coupled architecture.

It also contains just some general cleanup.