Properly handle append concurrency with downsampling.
Merge branch 'master' of github.com:wlanslovenija/datastream