Add tests for HookRegistry.
Switch to distribute.
Update .gitignore
Add tests for mpdhooks.