Modified structure and modified implementation of the minermanager to be
compatible with new setup. PermitMiner still needs major work