def request(xml)
      open_connection
      
      @logged_in = true if login
      
      begin
        @response = send_request(xml)
      ensure
        @logged_in = false if @logged_in && logout
                
        close_connection
      end
      
      return @response
    end
def request(xml)
      open_connection
      
      @logged_in = true if login
      
      begin
        @response = send_request(xml)
      ensure
        @logged_in = false if @logged_in && logout
                
        close_connection
      end
      
      return @response
    end
Sends an XML request to the EPP server, and receives an XML response.
 <tt><login></tt> and <tt><logout></tt> requests are also wrapped
 around the request, so we can close the socket immediately after
 the request is made.