Add timeout support

Support for timeouts for new connections, and all commands. Is compatible with php memcached class.