Add implicit request and session in templates