configure socket.io based on production/development evironment

As recommended at
https://github.com/LearnBoost/Socket.IO/wiki/Configuring-Socket.IO

Change-Id: I8fb2be311ca2add4ea097f544d32845b5f2e884d