ISPN-263 Handle cluster partitions

https://issues.jboss.org/browse/ISPN-263

I added one more commit with some test fixes.
We only need to log this if partition handling is enabled, else we will get a lot of warning spam I would think.