lots of bug fixes to the layout engine. this push is NOT backward compatible. the method names for the delegates have been changed.