Pass the request object to avocado formatters.

This change should be coordinated with changes on the avocado side (parallel pull request).