Fix a few bugs in the ruby bindings.

get, put, cond_put, search work.
Fill in the rest of the C API