Do not query the default timeout on each row
Use buffer when reasing from socket.

Do not call gen_tcp:recv/3 that often.
Improve the row data parsing
Avoid lists:reverse
Use decoder funs instead of matching on each row
Set the gen_tcp recbuf size
Correct test cases.
Fixed initial accumulator bug in open_n_connections.
Fix bug on multiple result set. Thanks jesper

There was a bug when a query returns more than result packets.
For example store procedures calls returns #result_packet{} followed
by #ok_packet{}.   We were lossing data after the first result set.

Thanks to jesper.louis.andersen@gmail.com for pointing this out.

Conflicts:
	test/basics_SUITE.erl
Add new test case
Make tests succeed again.
Merge branch 'process-one-fixes'