Import document_tools with context for csrf.

Discovered this missing CSRF token issue while testing willkgs pull 1177. We need to import `document_tools` with context for the csrf token to be rendered in the form.


r?