Ensure csrf token for all distributed server POST requests

Originally coded by @jamalex during the IDOC_coach_reports push.

Small change to make sure the distributed server client always has a CSRF token.