Fix missing escapes.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@16056 3db68df2-c116-0410-a063-a993310a9797
Improve performance when looking for new targets.
Tested in combat demo huge where nearly 50% of the replay time is spent looking for new targets, and GetPreference is called a lot as used to sort possible targets.
Caching the preferred classes before the second loop, the replay time of combat demo huge is reduced by about 15%. Replacing the "for each" loops by "for of" loops gains an additionnal 7%.


git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@16057 3db68df2-c116-0410-a063-a993310a9797
Call setlocale(3) on BSDs so that we can log unicode strings. Patch by Teiresias. Fixes #1142.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@16058 3db68df2-c116-0410-a063-a993310a9797
Report names of components or interfaces in case of error when registering those.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@16059 3db68df2-c116-0410-a063-a993310a9797
Clarify some comments.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@16060 3db68df2-c116-0410-a063-a993310a9797
Drop support for AIs that are not using modules.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@16061 3db68df2-c116-0410-a063-a993310a9797
Merge 'remotes/trunk'