Refactor to use librbd instead of writing to files
The main goal is to avoid having to map the rbd images on the system which requires root access
To do so perfect hash needs to be refactored to not use files directly. Possible solution is to use callbacks to python methods (generic) or link librbd to the c code.