Reads the configuration. Starts the connection. Launches the agent. Sets up keypress / shutdown handlers for shutting down.