Avoid copying data out of input buffer.

Use evbuffer_peek and evbuffer_drain instead.  We don't
need to copy the whole buffer to our own and then
again into a frame.  Just find the data in libevent's
internal buffers and copy it once.