Add header template, base css, improve code cleanliness.