This periodically test the connection with a MySQL native ping before sending a command.

This is a passive way to reconnect, without losing a query.
I manually applied Eonblast/Emysql pull request #45 to refresh the patch.
See: https://github.com/Eonblast/Emysql/pull/54