new_contents: import socket
  import logging
  
  import tornado.ioloop
  
  import amity.client
  
  if __name__ == "__main__":
      import sys
  
      logging.basicConfig(stream=sys.stdout, level=logging.DEBUG,
          format='%(asctime)s %(process)d %(filename)s %(lineno)d %(levelname)s #| %(message)s',
          datefmt='%H:%M:%S')
  
      #testingserver = amity.client.AJAMClient(host='testserver1', proxy_host='10.10.0.1', proxy_port=3128)
      ##amity.client.AJAMClient(host='testserver2', username='admin', secret='amp111')
      #amity.client.AJAMClient(host='localhost', username='amity', secret='amity', digest=False)
      ##amity.client.AJAMClient(host='testserver2', username='admin', secret='amp111223344')
      ##amity.client.AJAMClient(host='testserver2', username='admin', secret='amp111223344', digest=False)
              
      #tornado.ioloop.IOLoop.instance().start()
      amity.client.Request(action='Login', secret='awesome', username='hithere')
      print amity.client.Request(action='Login', secret='awesome', username='hithere').urlencode()
      print amity.client.Request(action='Login', secret='awesome', username='hithere').amiencode()
  
subject: update client manager and start rewriting AJAMClient