Define Couchbase::Result#to_s to produce the same output as #inspect

Change-Id: I9867a479242fecd2cff78516fb999456324d039d
Reviewed-on: http://review.couchbase.org/23701
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Sokolov Yura <funny.falcon@gmail.com>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Render bucket in Couchbase::Result#inspect

Change-Id: I70f287eea4d55145ffdfa57b46e670aea3e2e54d
Reviewed-on: http://review.couchbase.org/23702
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Sokolov Yura <funny.falcon@gmail.com>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Allow asynchronous connections

This patch allows to use Bucket instance in completely asynchronous
environment like this, without blocking on connect:

  conn = Couchbase.new(:async => true)
  conn.run do
    conn.on_connect do |res|
      if res.success?
        #
        # schedule async requests
        #
      end
    end
  end

Change-Id: I8be3f6e687591019c9bb21ada097ca137933ce48
RCBC-27 EventMachine plugin

Introduce plugin which allows to use couchbase client via same blocking
interface using Ruby 1.9.3 fibers.

Change-Id: I6a5bd7c86f9ce5f3b7090b0c58bc411d6b6a52f7
Example of API server with Couchbase backend

Change-Id: I05c6b4e41217be9e689b95d36dbce5a7021fab7e