Chat protocol using AJAX (work in progress).