Added a delegate for the web image prefetched.
Code cleanup.
Merge pull request #577 from pieterclaerhout/master

Added a delegate for the web image prefetched.
Using webkit's method for determing frame durations of various gif images
Updating podspec
bleh
Fix race condition in image download cancellation

There are many race conditions around cancelling
SDWebImageDownloaderOperation instances from other threads. For example,
imageData may be set to nil and deallocated just as it is being appended
to, or the threading can interleave in such a way that messages are sent
to a deallocated connection. These were discovered using SDWebImage for
a Google Maps-style tiled mapping application where there is a lot of
download and cancellation if users pan rapidly.

This fix tracks the worker thread that the NSURLConnection instance runs on and
performs cancellation on the worker thread. The cancel and start methods need
to be synchronized to handle the case where cancellation happens before
start is called; since no thread has been assigned yet, cancellation is
performed on the calling thread.

Because cancellation is now scheduled on the same run loop as
NSURLConnectionDelegate callbacks, there is an added window of time that
a download can finish prior to cancellation. This means it's possible to
cancel an operation yet still get a successful completion callback. This
was always possible because of race conditions, but it is more
pronounced and predictable now. An application that relies on
a cancelled operation never calling its completion block (e.g. recycling
image views in a scrolling table view) must adopt some other mechanism
(e.g. a version number) to avoid running completion code for a stale operation.
Added PNG detection to be able to determine at runtime if a downloaded image should be saved as PNG or as JPEG
Added new option to allow invalid SSL Certificates. Useful for testing
Cleaned up code to follow project code style
Merge pull request #582 from jenshandersson/master

Added new option to allow invalid SSL Certificates. Useful for testing
Removing warning in 5.1DP2 by removing “extern inline” (this doesn’t really make sense)
Removing warning in 5.1DP2 by marking variable as unused
Merge pull request #587 from JaviSoto/master

Removing warnings in Xcode 5.1DP2
Merge branch 'master' of git://github.com/wishabi/SDWebImage into wishabi-master
Merge branch 'master' of git://github.com/vincentjames501/SDWebImage into vincentjames501-master
Track current thread in downloader operation
Fix documentation param name mismatch
Merge pull request #588 from wishabi/master

Assign thread for downloada cancellation + minor doc fix
Expose timeout property for the downloader.