Prepare the ServerConnection for threading
Add function for be able to work with background processes
- Adding Delegate Methods to the ServerConnection Class
-Add error handling for the Server Connection class