Two things to note here:

1) Web Sockets probably should be a plugin that will modify core ui:
     kodrCI.ui.io = require('socket.io');
     I don't think sockets should be a requirement
2) The web ui port needs to be configurable.