Frontend-STFL: implement _LocalSession and its init code