Cleanup of init of Client and passing arguments.
Removed is-running-as-script for client.
Moved member variables last.
Moved ctor and dtor first.
Hold socket in smart pointer.