Reorder initialization calls.

* Refactor opt checking, paving the way for separation into commands
  module.
* Do not hijack the stdout for commands, reduce clutter.
Merge remote-tracking branch 'refs/remotes/kali/bug/improve-commands-logging' into develop