Add riak_client abstraction layer
Fix premature connection release

WM resource produces body by know_length_stream, its finalize_request
is called immediately after it returns know_length_stream.
Releasing connection at finalize_request is premature because it is
used in producing body.
Add riak_client type