Updating file_get_contents() and curl calls to HttpClient

Lots of little updates across the whole codebase to convert all the file_get_content() and curl calls to use the HttpClient class instead.

All unit tests running okay.