implement riak pagination

Use `%r` rather than `%s` here. Also, put the right hand side of the `%` operator in a tuple (`(cursor,)` in this case) so that we don't explode if the value happens to be a list or tuple.