Factor-out the common parts of the HTTP initation methods into a private method. This
way, we don't have to repeat logic.

Also, move in the direction of making private methods / data.
Move to using private variables (by convention) for HttpiResource.