Recording/Reproduce sequence feature implemented.

This is the base for save and play sequences. Currently there are some minor issues to be fixed.