Fixed response system to not decorate html responses if requested by AJAX.