I've rebased the available patch on top of master. So far I only made it compile (for Linux, it won't compile for Win32). I'll make the tests pass and complete this during this week (hopefully).
I'd really like to include this for 3.5.0 because testing ZOOKEEPR-1607 properly depends on this (and, more generally, for any further development/enhancement of read-only support we might as well have this supported in C...).
Early reviews welcomed, but be warned this is WIP!
cc: Flavio Junqueira, Michi Mutsuzaki, Rakesh R, Patrick Hunt, Thawan Kooburat