Updates for knitr 1.4; split template into child documents