Make default module participate in all lifecycles.
Pass request to all transformContent.

Fixed a bug where passing request to toHtml would die.
Stop errors from starting gz handler after output.

Output should turn on gz_handler earlier so any output caused by a
module earlier in the request doesn't break the gz_stream if it's
started after output.
Allow ?format=json parameter to trigger JSON output.