ISPN-263 Handle cluster partitions

https://issues.jboss.org/browse/ISPN-263

I added one more commit with some test fixes.
Wow, I must have read this 100 times and I still didn't see it :)