2i pagination support

See https://github.com/basho/riak_kv/pull/535 for more details.

Happy to squash to a single commit before merging to master.