backend: add new api call: get_ranked_items

Not fully implemented: the ranking engine isn't yet plugged in, so
pagination and ranking both don't quite work.