Add promises to the JS driver - See #1395
btree: keys: remove unused method

I see no where used btree_key_t::fits; remove it.

Signed-off-by: Liu Aleaxander <Aleaxander@gmail.com>
unittest: fix wrong type error

Though that call is actually commented now, you will meet build error if
remove that comment.

Signed-off-by: Liu Aleaxander <Aleaxander@gmail.com>
unittest: var in a class should be private

"public" should be a typo here, and change it to "private" as we usally do.

Signed-off-by: Liu Aleaxander <Aleaxander@gmail.com>
Ruby: Fix conflicts with active support
Merge pull request #2271 from Aleaxander/yliu-btree-trivial

yet another tiny series of trivial fixes on btree
moving token to query header in JSON protocol
fixing code review comments in protob server
Merge michel_1395_promises_squashed in next
Merge pull request #2284 from nviennot/ruby_json

Ruby: Fix conflicts with active support
adding random support
changing double random number generation because paranoia
adding better error message when using an incomplete cursor on a closed connection