Fix #1938 "Error dialog not working"

- also fixes #1979 "Don't log full stack trace of session expiration messages"
- was due to #1363
- XFormsServer now outputs error document directly
- don't log document/session expirations