Moved the configuration part of the software to a seperate library.