Issue 336 2

These patches consolidate the parse of command line options to ConfigManager.
In addition, it also parses a configuration file.
`dbServer.c_str() + posColon + 1` will be more readable as getting substring code.