Convert to use em-http-request instead of Net::HTTP

prepare for debugging`