WIP - Added configuration file support (key-value based now, but old format still recognized as well)