Fix: WriteUpdate was ignoring the Raw flag from its callback

Any doc updated through WriteUpdate was being marked as JSON, even if it
wasn't really. This caused problems in the gateway.
Added Bucket.Dump() method for debugging

It just writes a list of all keys/values to stdout.