http-rpc: Rewrite server loop to handle long requests

We can now handle HTTP requests that span more than one TCP packet. Such
accomplish. So wow.