Fix sharing and redraw behavior for interactions.
Fix sharing and redraw behavior for interactions.

Fixes #692
Partial work on #681

pranjaltale16/codeworld,pranjaltale16/codeworld,pranjaltale16/codeworld,google/codeworld,alphalambda/codeworld,alphalambda/codeworld,google/codeworld,google/codeworld,alphalambda/codeworld