Fixed crucial bugs in Contract Net. Event loop still buggy.