First working version of ajax+cgi interface.