LPS-44575 Adjust virtual host based on requested LayoutSet

Hi Jorge, 

I changed the names + the logic to support wider range of possible use-cases for `referrerLayoutSetId` parameter.

Thanks.

Btw. The commit names/messages are not final, I kept them for you to track the changes between #363 and #368.