Fix formatting long durations.
Use high performance Wifi lock to prevent disconnects in background.
Use Apache HTTP client instead of HTTPUrlConnection, which is rather flaky with chunked transfers.