[NSURLConnection waitUntilAllBackgroundThreadConnectionsAreFinished] method added.