WIP refactoring network logic out of hubkit into http client