CurlFile - update 01

This is first part of larger PR #3226.

This PR is mostly CHttpHeader-related.
CStdString removal, fixes, optimizations and refactoring.