Add language variable to scripts, add .listlanguages, fix .setvariable booleans