modules/http_client: use em-http-request

EventMachine's build in HttpClient2 was deprecated in favor of the
em-http-request gem. Various bugs in HttpClient2 finally forced us to
make the change.

Since changing the module breaks all the scripts that use it, this was
done in one commit. Sorry about that.