linting templates.js; got rid of some unused server-side code
Merge branch 'master' of https://github.com/designcreateplay/NodeBB