Retry media upload - Take 2

Implement retry functionality for media uploads that fails.

Solves: 
 * wordpress-mobile/WordPress-iOS-Editor#348
 * wordpress-mobile/WordPress-iOS-Editor#361

cc @bummytime @diegoreymendez 
This should be updated to a02bfc7e40ea03140fc553ad257d1583ac3638ca