results: preserve expansion of sections between reloads of results.html
This resolves the issue where reloading results.html (e.g. when sorting a section) will result in sections being collapsed again. Section expansion is now handled server-side and tracked in cookies.