Move header layout code to a partial and fixed fog credentials for asset host.