Refactor common header into jade layout.