cache filenames picked to be reused even if user-id changes
fix such that clear buffer does not cause small snippet to be downloaded after clearing
Improvements and better error logging when downloading large chunks.
manually convert timestamp date to string (ISO 8601) before JSON-encoding, as built-in JSON encoder does not support NSDate