Add some TODOs
Some work on closing properly.

Also added some more debug output.
Make compiling the examples optional.
Read any close frame on bufferevent errors.
Some extra debug output.