make social optional

adds a config for the social buttons, to be included.  

Also cleans up any glaringly ridiculous JavaScript/html that happened to be next to where I needed to modify the templates (e.g. two inline script tags next to each other, or multiple closures next to each other)