[#LIB-155] Refactor configuration store/read, reduce repetitive code | bug with int and boolean defaults