Undo now works over TGJS. Needs to sesend the undo-list over init too, also needs some refactoring.