Fix event cleaning in Referee and Dealer.
Fix #9. Use a transaction for file-creation.
Increase timeout for tests concerning transactions (cf #7)