Use libcurl

Instead of using libevent's http API, use libcurl. It's just sooooo
much easier.