Rewrote locale loading and processing code. All references to locale
functions have been updated. (Names of localized messages have not yet
been updated and messages have not yet been fully moved)