Structured Overlay support

This has some refactoring and work for supporting structured overlay. It is turned off (set RIPPLE_STRUCTURED_OVERLAY=1 to enable).