Rewrites the scriptParser

Script parser now returns a list containing:
time of the event, event

The event is a proper eventclass that can be run by itself.