Initial refactoring of configuration parser. (#28)