Improve performance when retrieving large blobs

This patch vastly improves the performance and memory usage while getting large blob results.
It makes a gen_tcp:recv call to retrieve the rest of the packet at once.

While testing this I found to decrease from 1.4 seconds to just 15ms to retrieve a blob of about 7Mb.