Templatize and modularize layouts and includes

Trying to eliminate all repetition and duplication of code. Using templates across entire site.