Fixed many date/time formatting bugs by completely rewriting the code; added basic support for multiple calendar systems; added default countries-for-languages look-up for locales. Approved: Matthias Brantner, Sorin Marian Nasoi, Nicolae Brinza, Paul J. Lucas