Merge pull request #99 from euroelessar/master

Moved secondary indexes to elliptics serverside
Merge pull request #100 from euroelessar/master

Changed usage of debug() to dnet_log()
Cleanup prepare/commit reserve size calculation
v2.25.1.0
Moved ID locks implementation to RBTree

Previous hash-based implementation had collisions which lead to dead locks