Switch to bufferevent
Merge pull request #14 from iclemens/bufferevent

Switch to bufferevent.