refactoring WTIP:
* complete rewrite of CLI argument handling and parsing
* the CLI part is covered with unittests
* new CLI option: client.json.buffering