Change redirects to properly handle 3xx codes
Support nested promises.

Closes #469
Move class.
Inline.
Merge pull request #472 from robzienert/http-client-redirects

Change redirects to properly handle 3xx codes