Introducing the tracking of upload and result file IDs.

This is to trigger the onUpload() and onResult() callbacks without
the need to rely on the API to give us the new uploads and results
in subsequent status polls with the "seq" query parameter.