Added mockable HttpClient for better testability

@shermpay Please code review and pull :).