Unified GUI/Non-GUI client.

Supports encryption and client commands (not sent to server).
Commandline mode can be run with "-nogui" flag.