README: update deps for rpm based systems
bml: refactor to share code between bml and bmlhost

Extract the logging code into a reusable module. Move the code that sets up the
buzzmachine api wrappers into a module as well.
build: fix pthread detection