This ensures that the theme id is resolved as early as possible in the request cycle. This is necessary for the custom homepage to skip preloading the wrong data.
This PR adds a theme modifier and route so that custom themes can opt to show their own homepage. See PR description for example usage.