Add ability to send commands when connected

This can be used e.g. to send CLIENT_SETNAME to name each connection to
the Redis server.