Fixes bug in getting threads, and add posts dumping groundwork.

The specific bug was that the offset was not getting reset in between
the inbox and outbox while loops.