Change paginator api, add helpers for getting metadata