Add spec to for the pretty formatters handling of hook output
Fix the Pretty formatters handling out hook output

For the Pretty formatter it is important that the output (puts) from
After/AfterStep hook arrive before the call to after_table_row, and
that the exceptions from from After/AfterStep hooks arrive after the
call to after_table_row.
Let the Pretty formatter print hook output before hook exceptions
Merge #738 Handle hook output appropriately in the Pretty formatter

Also update History.md.