Fix request parsing in HTTP/S-RPC server:
This fixes the case where more than one HTTP request fits into a single buffer
used in the call to async_read. Previously the second request would not be
processed unless a subsequent read completed, but there is no guarantee that
the client is sending more data. The problem is resolved by parsing the read
buffer in a loop until either the read buffer has been emptied or an error
occurs.