Moved Client::doExecuteCommand() method to core class.
Made Exception class extend base core exception.