Completed cSPrimitiveEvent record & replay.

Basic event mimicking is now functional; however, scripts are executed
asap, and sometimes fail in situations that require a delayed approach.
For example, the dock on OSX requires a time interval before appearing.