use app.settings instead of app.locals for host/port of Socket.io url

please note that the value assigned to socketIOHost (in layout.ejs) needed to
be enclosed in "" since the template evaluation omits adding them for the string

idea taken from http://jimpravetz.com/blog/2012/08/express-3-migration-issues/