Pass output from step definitions on to gherkin formatters

The legacy_formatter need also to make sure that the puts calls from
the step definitions are not passed to the formatter until it got
information about the corresponding step.
Merge branch 'json-formatter-output' of github.com:brasmusson/cucumber into brasmusson-json-formatter-output

Conflicts:
	features/docs/formatters/json_formatter.feature