Improved version.

event.player is used instead of replay.players[event.pid]
There's a variable to enable/disable debug messages
Test_all is back to normal. The plugin testing has been added to test_engine_plugins.
replay.seconds has been replaced by replay.game_length.seconds