Feature/retry media upload

Implement retry functionality for media uploads that fails.

Solves: 
 * wordpress-mobile/WordPress-iOS-Editor#348
 * wordpress-mobile/WordPress-iOS-Editor#361

cc @bummytime @diegoreymendez 
I have my doubts here, I think ! has higher precedence than ==.
Anyway I'm going to change it to > 0