TREFF: Convert header.php to a function

The function allows users to specify which .js and .css files they want
loaded in the <head>. This makes for smaller, easier to understand
.css and .js files. Also it means every page doesn't have to load every
single file needed by the other pages.