Initialize system logger after parsing all command line arguments.

This way, parsing errors end up at <stdout> instead of <stderr> and have no logger signature.
Moves XML serialization logic to separate class.