Http client fixes

This pull request includes @johngmyers commits and fixs for the issues he demonstrates.