Fixed error in http logging where content wasn't always pasted at end of buffer.
Ensure that parse result hooks are run in the right buffer.

This change remembers which buffer is active when parsing is started,
and it switches that buffer to process parse results. This avoids the
possibility that parse results arrive when a different buffer than the
original is active.
Merge pull request #53 from abingham/parse_buffer

Parse buffer