Added extension to NSURLConnection.
Fixed some issues with NSThread extension.