global: warning/error message/page refactoring
- General cleanup of how warnings and errors are reported to web requests, by centralising function definition in the WebStyle module.
- Also improves kwalitee of modules touched by the above change.
Co-authored-by: Tibor Simko <tibor.simko@cern.ch>