Allow context to be passed in to formatters, from, e.g. serrano.

This change should be coordinated with a change on the serrano side.
Merge pull request #96 from murphyke/2.x

Propagate exporter context into formatters