Rename epmi -> registry internally to reduce confusion.
Fix broken tests.
Define hooks as pkg.hooks.* for easy access.
Remove debug logging.
Remove newline.
Rename a few functions.
Remove newline.