renames _socketIsClosed to _isSocketClosed and changes send to only accept (url, data) form
and send appropriate json ({url: url, data: data}) in Server
makes Server._connect public and renames close to disconnect
removes this._connect() line from Server constructor
adds Array.empty for clearing an array
adds isConnected() to Server and checks it in send()