Updates to server api.
Working on server connection