Additional HTTP fixes.

 * Fixed HTTP request parsing to get all data instead of only the first buffer
   worth.
 * Changed time.sleep(0) in get_data to wait_read to avoid endlessly looping.
 * Properly check for empty return value from socket.recv indicating the socket
   is closed.