adding preliminary socket.io file transfer code for migration away from POST requests