adding https support, split of apache client impl which should go on different jar