process.setMaxListeners option
Import expandtemplate as a npm module
Upgrade socket.io version so that it can be run with new Node version.

See issue: https://github.com/LearnBoost/socket.io/pull/1080
retore two missing commits from yesterday