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'
Fixed cast bug for NULL table entries.
Merge pull request #97 from howleysv/null-field-fix

Fixed cast bug for NULL table entries.
Merge remote-tracking branch 'eonblast/master'
Sync with Eonblast/Emysql