Is any abstraction or some generic algorithm exists to build a bridge between graph rewrite (DOM) and async message passing (AJAX)?
Looking on a task on writing universal frontend engine, which transfers changes between in-browser DOM and server-side application model (with DOM mirror in every session), it seems to be good to use a priority queue to sync interface and application run on a server using some message/graph rewrite engine in frontend.