make undo works for add script command
add serial version
add working undo for adding new script
test for adding a new script brick
make memento as member of Command so it can be serialized safely