Add function to render header meta ... FIXES BUG where values set inside an EJS script are persistent to later EJS renderings
Use new function for calling headermeta
Remove section that fixes up pagename etc - also remove excess white space from output
Remove excess whitespace
Add commented-out logging