move camara feed and socket.io controls to server.js