Partially through figuring out pagination. Lots of debug output.
Enabling pagination for item lists.

Requesting all items as one query instead of concatenated query (undocumented in spec).

Exiting if access token cannot be obtained.

Lots of thread synchronization. This is very bug prone. Please let me know if there are any lingering issues.