Add acceptance of TOS to the test helper for creating a user that can actually log in.
Change the way the Document keyword 'tos' is referenced to use a constant.
config.yml setting ('ensure_tos') to disable enforcement of TOS (fixes #2526, #2537)
"Login macro" for tests now takes new config.yml setting for 'ensure_tos' into account
Remove EOL whitespace