Import libevent cookbook

Apache 2 licensed, per discussion with @joshk.