Base URL index redirects with replaceState rather than pushState

Prevents users getting stuck at index when using the back button due to automatic redirect.
Move media query variables to their own module
Add actionable list item controls