The first exit polls suggest that Hamas has achieved only around 30% of the vote in Palestine (
link from Der Spiegel in German). PM Abbas' Fatah polls around 40%.
It's still not really good news, but at least it leaves the door open to a negotiated settlement with Israel (in theory). Israel had threatended severe consequences if Hamas became the strongest faction in parliament.
UPDATE: link in English