Merge pull request #3 from Gargron/master

Adding tests and abstracting transport
Fix submitData method that did not pass queries through

I think this is a bug that was lost in the shuffle. Looks like we were
referencing queries via $this instead of passing them through?
Merge pull request #5 from willwashburn/bugfix-socketSubmit

Fix submitData method that did not pass queries through
fixed refactoring mistake in Socket.php
disabled non-blocking socket, because its not what you want!

Non-blocking sockets are only usefull if you want to have two sockets in one thread. In this case you loose data (cause there is no select() nor multiple fwrites if not all bytes have been sent.
Merge pull request #6 from carlos22/patch-1

fixed refactoring mistake in Socket.php
Merge pull request #7 from carlos22/patch-2

disabled non-blocking socket, because its not what you want!