implement riak pagination

There are possible errors that aren't due to bad cursors.