Add optional callbacks to output_hdr and output_fragment
Merge pull request #33 from Sidnicious/patch-output-events

Add optional callbacks to output_hdr and output_fragment