retrying on socket errors instead of dying, which helps when uploading apps
retrying failed socket errors only a certain number of times, as opposed to indefinitely
Merge pull request #187 from shatterednirvana/retry-on-conn-refused

retrying on socket errors instead of dying