chg: move config reading to lib.rs

Created by  Frank Uhlig  on April 6, 2022
5IY2FR4MQPGXWV4VCULOXXTZCICMP6BJIYGGBWSWG3C6UPI4AOBAC
Change contents