Actual data selection, marshalling to JSON and upload to server, with marking sessions as uploaded afterwards.