Switch API to using 'object_class' instead of 'queryset'.

Instantiating a queryset with every document in the database always
seemed odd.