EM client improvements and ability to fcntl the mysql socket

Tests will be coming later; opening pull request now to move conversation from https://github.com/thegdb/mysql2/commit/774a2e1ba2a93538ea4fc8a4721850c31df81ed0