Some cleanupt wor on implementing use of shared layouts.

http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=29891