Allow AUTH / PING when disconnected from slave and serve-stale-data is no.
Document the redis-cli --csv option.
Add REWRITE to CONFIG subcommands help message.
PSYNC: safer handling of PSYNC requests.

There was a bug that over-esteemed the amount of backlog available,
however this could only happen when a slave was asking for an offset
that was in the "future" compared to the master replication backlog.

Now this case is handled well and logged as an incident in the master
log file.
Replication: fix master timeout.

Since we started sending REPLCONF ACK from slaves to masters, the
lastinteraction field of the client structure is always refreshed as
soon as there is room in the socket output buffer, so masters in timeout
are detected with too much delay (the socket buffer takes a lot of time
to be filled by small REPLCONF ACK <number> entries).

This commit only counts data received as interactions with a master,
solving the issue.
Replication: install the write handler when reusing a cached master.

Sometimes when we resurrect a cached master after a successful partial
resynchronization attempt, there is pending data in the output buffers
of the client structure representing the master (likely REPLCONF ACK
commands).

If we don't reinstall the write handler, it will never be installed
again by addReply*() family functions as they'll assume that if there is
already data pending, the write handler is already installed.

This bug caused some slaves after a successful partial sync to never
send REPLCONF ACK, and continuously being detected as timing out by the
master, with a disconnection / reconnection loop.
Redis 2.7.105 (2.8 Release Candidate 5).
redis-benchmark: update help for new __rand_int__ form.
Add SCAN command
SCAN requires at least 1 argument
Fix error in scan algorithm

The irrelevant bits shouldn't be masked to 1. This can result in slots being
skipped when the hash table is resized between calls to the iterator.
SCAN option name changed: pattern -> match.
Fixed typo in SCAN comment. iff -> if.
SCAN: use define REDIS_LONGSTR_SIZE instead of fixed len.
SCAN: remove useless assertion, already enforced by command table.
SCAN: remove additional newlines to conform to Redis code base.
SCAN: improve variable names for readability.
SCAN: Fix test after option renamed from PATTERN to MATCH.
SCAN: simplify keys list cleanup using listSetFreeMethod().
Revert "Fixed typo in SCAN comment. iff -> if."

Probably here Pieter means "if and only if".

This reverts commit 43fdf3b404413f6e3b2c39ac491238c70ecee81c.