Enable Travis caching of APT packages.
Switch from cpp-netlib to libevent.
Remove the cpp-netlib dependency from Travis.