Multiple improvements

Added version and output version during runs
Added signal catching to do graceful quits
Moved event calculations to QuakeLib