Update upload application

It basically works now with synchronization from a low priority
thread that scans the measurements folder for files.