large change to handle event responses

moved stats to numerals instead of strings
remove socket.io and send all stats and event trees
minimize form input