Replace NSURLConnection with NSURLSession, remove the synchronous mode when downloading data.