Merge pull request #1 from macro/master

Support json-encoded data.
Merge pull request #2 from macro/master

handle when encode is called with binary
Merge pull request #3 from macro/master

allow configurable request timeout
make sure we close and free appropriately, also close if there is an error on set
Merge branch 'free-close-race'
update to the latest gen_server2
conflict
Merge branch 'path-merge'
add dirty hack to use a cast instead of a call when sending set to store values
Merge branch 'set-cast-hack'
update gen_server2 again