Connect to server, parse responses