More cleanups in leoGlobals.py.  All unit tests pass.
Merge branch 'master' of github.com:leo-editor/leo-editor