Improve parsing of server responses

Move parsing of responses to a separate method.
Parse enhanced status codes
Parse and store all values in struct Response