Fixed merge index mismatch if some of merging shards have unfilled shard_id and shard_count.
Pytests: turned on exit on first fail to make it easer to find the problem. Used separated log files for all node and client.
Merge pull request #491 from shaitan/master

Merging index shards and pytests.