Nick Mathewson - 2012-04-27

Seems like we do indeed need an appropriate "bufferevent_shutdown()" function to handle the frequently requested "flush and shutdown or close" operation. Also, we need to make sure than any pending overlapped IO counts as holding a reference on the bufferevent.