got basic socket functionality going, set up csrf tokens