Adding force flush on shutdown; adding S3 backend.
Fixed regression in handling of sampled stats
Building out the S3 backend to be robust to temporary failures.