Merging index shards and pytests.

  * Fixed merging index when some of merging shards have unfilled shard_id and shard_count
  * Turned "on exit on first fail" at pytest to make it easer to file the problem.
  * Used separated log files for each server node and client.