Index file use From as latest synchronization time

Previously, the time that was stored in the index file as the latest
synchronization time was the To property of the last measurement object
uploaded.

This commit will change that to use the From property of the last
measurement uploaded as the last synchronization time.

The reason is that the code that filters out measurements already
uploaded, verifies that the From property is later that the last
synchronization time.