Added an isAjax method to Request

This method is useful to know if the current request is generated by an XHR
object (thus meaning it’s AJAX). It can be used to change conditionnally the
content of a result.