Major config refactor. Uses ConfigObj to parse cfg