data_class: sorting works for GAE and Mongo. Fixed a bunch of bugs. implementing sort in textdbwrapper now.  using cursor wrappers for all finds.