Templatize and modularize layouts and includes

Trying to eliminate all repetition and duplication of code. Using templates across entire site.
We should probably just remove this. We'll remember to include the copyright, because I'm opening an Issue as a reminder.