Refactor body class from controllers to template

https://tracker.phpbb.com/browse/WEBSITE-1158

WEBSITE-1158
And let's cache these pages too