set analysis to running
change websocket handling, clean up redis after run. Fixes #223 #167