add instancetype to class constructors
fix retain cycle
track number of resources left to load, fixing race condition
add OS X support
add OS X support
add OS X support
add weak fallback for iOS 4
nil out delegates on dealloc
fix conflicts
fix merge conflicts