Add locale change handler; fix bugs
TeXSample Server v1.1.2