Switch from cpp-netlib to libevent.

cpp-netlib is giving us trouble, and is not very well maintained (a rewrite that should "fix everything" has been announced a year and a half ago). libevent has different annoyances, but is widely available and works.

Also here: https://codereview.appspot.com/134250043/