lib: add http/https Agent implementations