* JS. Added headers parameter and beforeSend callback to cm.ajax.