Fix eval usage in tests to conform with eval semantics
Merge remote-tracking branch 'upstream/unstable' into unstable
Fix lack of SA_ONSTACK under Cygwin

Fixes #232
Fix lack of strtold under Cygwin

Renaming strtold to strtod then casting
the result is the standard way of dealing with
no strtold in Cygwin.
Fix LUA_OBJCACHE segfault.

When scanning the argument list inside of a redis.call() invocation
for pre-cached values, there was no check being done that the
argument we were on was in fact within the bounds of the cache size.

So if a redis.call() command was ever executed with more than 32
arguments (current cache size #define setting) redis-server could
segfault.
Remove trailing spaces from sentinel.c.
Remove trailing spaces from scripting.c
Merge pull request #1764 from michael-grunder/lua_cache_segfault

Fix LUA_OBJCACHE segfault.
Merge branch 'unstable' of github.com:/antirez/redis into unstable
Regression test for issue #1764.
redis-trib fix: use MIGRATE REPLACE when fixing slots.

This fixes issue #1765.
Fix blocking operations from missing new lists

Behrad Zari discovered [1] and Josiah reported [2]: if you block
and wait for a list to exist, but the list creates from
a non-push command, the blocked client never gets notified.

This commit adds notification of blocked clients into
the DB layer and away from individual commands.

Lists can be created by [LR]PUSH, SORT..STORE, RENAME, MOVE,
and RESTORE.  Previously, blocked client notifications were
only triggered by [LR]PUSH.  Your client would never get
notified if a list were created by SORT..STORE or RENAME or
a RESTORE, etc.

Blocked client notification now happens in one unified place:
  - dbAdd() triggers notification when adding a list to the DB

Two new tests are added that fail prior to this commit.

All test pass.

Fixes #1668

[1]: https://groups.google.com/forum/#!topic/redis-db/k4oWfMkN1NU
[2]: #1668
redis-trib fix improved: move keys from N nodes to owner.
Fix an error in redis-trib where we always talk with same node.

While iterating the list of nodes we want to set the slot as stable in
the current node, not always in the first node of the list.
Test: dump.tcl fixed for RESTORE new error msg.
Test: AOF test false positive when running in slow hosts.

The bug was triggered by running the test with Valgrind (which is a lot
slower and more sensible to timing issues) after the recent changes
that made Redis more promptly able to reply with the -LOADING error.
Cluster: slave validity factor is now user configurable.

Check the commit changes in the example redis.conf for more information.
Tag every log line with role.

Every log contains, just after the pid, a single character that provides
information about the role of an instance:

S - Slave
M - Master
C - Writing child
X - Sentinel
redisLogFromHandler() format changed to match new logs format.
Fixed typo in word avarege in result message of --intrinsic-latency analyzer