All this "progressive" and "fresh" stuff is quite tricky, and typically requiring for quite a long learning curve. Why don't you consider oldie-goldie socket solution with XML exchange?