Export reused components of bitfury management into a libbitfury and use for bab and bitfury drivers.