def handshake
      data    = "email=#{@email}&password=#{@password}"
      headers = { 'User-agent' => USER_AGENT }

      begin
        resp = @http.post(API_HANDSHAKE_PATH, data, headers)
      rescue SocketError
        return false
      end

      debug "[HANDSHAKE]" do puts resp.body end

      return (resp.code == "200" && !resp.body["login failure"])
    end
def handshake
      data    = "email=#{@email}&password=#{@password}"
      headers = { 'User-agent' => USER_AGENT }

      begin
        resp = @http.post(API_HANDSHAKE_PATH, data, headers)
      rescue SocketError
        return false
      end

      debug "[HANDSHAKE]" do puts resp.body end

      return (resp.code == "200" && !resp.body["login failure"])
    end
=Handshake with login credentials
 ==Returns:
   true if handshake successful, false otherwise