Issue 336 2

These patches consolidate the parse of command line options to ConfigManager.
In addition, it also parses a configuration file.
>> If foreground is true and cmdLineOpts.foreground is false, this code doesn't change foreground to false. Is it OK?
> OK. The command line option can set foreground only.

Thanks for confirming. Other related codes such as `cmdLineOpts.faceRestPort` are also OK?
For example, `faceRestPort` is set to `2929` and `--face-rest-port=0` is specified as command line option case.