Set thread priorities.
Add retry http logic.
Merge pull request #74 from cloudfoundry-incubator/TweakThreadPriorities

Set thread priorities.