Replace python-daemon with a minimal daemon module.
Add missing package management API dependencies.