Add initial view config to layout

This avoids one http request on first page load and improves page
rendering.