Too much for one commit, but inseparable at this point.  Includes: localizing shared constants to shared/i18n, shortening names, decreasing non-debug output, closing file pointers when done, indenting changes, removing API keys from public code, and being explicit about language code formats.