Make config_path and snapshot_path std::strings.
A first take on refactoring config.cc.

Contains a ugly hack because the current code is expecting mutable char*
arguments. Something to refactor later!