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.