Add two hooks to be executed when a chunk is downloaded.

One hook is executed right before receiving a new chunk. The second
one is executed just after. parsertrace.c is updated to use those
hooks for display.

I am using this for experimentation with rendering. This is more reliable than looking at timestamps to know where chunks start and end.