Adjusting how Clam is loaded

Pre production runs in two modes, headless and web-facing. Thus we need
a way to differentiate.