locale fixes, new TEI approach partially implemented, fixed echoing password, mostly removed commented code