Added updating HTML lang and dir per request feature.