Set "this" in formatters

Also adds documentation of the `this` value in the options reference.

Fixes #519 
Just copying what was here already -- would be better to use `g` everywhere.