Added slight delay in availble check, similar to response handle, added flush response handler
* A similar delay in the available method seemed to required to increase stability of checking availability of a response in a tight loop
* Added a response handler to handle flush. This simply forces a timeout while reading all bytes available from the transport layer.