modify handlers to accept query string

These should just be separate parameters, I think. So ``write_page(self, objs, cursor)`` (or maybe ``cursor`` first is better.