ISPN-263 Handle cluster partitions

https://issues.jboss.org/browse/ISPN-263

I added one more commit with some test fixes.
Right, I think Mircea did it this way for simplicity, but we should have
different checks for reads and writes.