Add directives and templates for footer and header. Fix version interpolation filter.