wikimedia/Commons-iOS — pull request #8 by felixmo (2013-02-01 08:52:23+00:00)
Title: Image cache + NSUserDefaults + fixes

I implemented a basic image cache in **CommonsApp** for the image previews in the detail view to save bandwidth and to speed up future access.

The cached images are saved in a sub-directory of the app's cache directory, which will be automatically purged by iOS when storage is low; although we can implement a mechanism to purge it ourselves periodically.

And I implemented **NSUserDefaults**; I created a new file *defaults.plist* to store the default values for the preferences and the debug mode preference is now handled by this.

Also I renamed the following method in **MWApi** to satisfy the compiler.
```objective-c
// Before
- (void) logout: onCompletion:(void(^)(MWApiResult *))block

// After
- (void)logoutOnCompletion:(void(^)(MWApiResult *))block;
```