increase retries for history records; flush after unexpected packet received
increase retries for history records; flush after unexpected packet received

tidepool-org/chrome-uploader,tidepool-org/chrome-uploader,tidepool-org/chrome-uploader