Added a sync receive

Added a sync receive which waits for data to be received, but still
using the asynchronous model. It waits maximum 10 seconds for data. This
is useful if you need to perform an extended receive of data. Ex. with
http post content.