Extract architecture 2
On current iteration the architecture of middle tier started to emerge. First and foremost it's schema definition. Then it's services which can transform schema compliant document into view, edit and execute formats. Then there are services (code tables) which supply data for editing application.
AJAX front end provide view and edit functionality by consuming those middle tier services.
AJAX front end also initiates execution by calling into document->execute format transformation on middle tier.