still more fixes on ai serialization + some cleanings

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15954 3db68df2-c116-0410-a063-a993310a9797
Automated build.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15955 3db68df2-c116-0410-a063-a993310a9797
Slightly improve fogging performance by avoiding the constant deletion/re-creation of mirages.
This makes the simulation update faster per entity but also makes the number of entities greater at a given moment. The performance gain is positive.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15956 3db68df2-c116-0410-a063-a993310a9797
fix petra serialization

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15957 3db68df2-c116-0410-a063-a993310a9797
Fix tests.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15958 3db68df2-c116-0410-a063-a993310a9797
Clean up JSON parsing code. Refs #1374.
Fix Engine.ReadJSONFile() which did throw a JS exception that was not caught. Discovered by s0600204.
Expose Engine.ReadJSONFile() to the gui scripts.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15959 3db68df2-c116-0410-a063-a993310a9797
GUI cleanup.
Remove toTitleCase(). Unify iColorToString() and rgbToGuiColor().
Translate XMPP errors (displayed when connecting).

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15960 3db68df2-c116-0410-a063-a993310a9797
Split ScriptRuntime and ScriptInterface code to separate files.

The runtime is becoming more and more important in the JSAPI. As a result, we also have more functionality on the runtime level and having the whole ScriptRuntime class hidden in ScriptInterface.cpp doesn't make sense anymore. ScriptInterface.cpp also has become quite a large file and pulling out the runtime part makes it a bit smaller.

Refs #2462 


git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15961 3db68df2-c116-0410-a063-a993310a9797
prevent events from the first turn after deserialization to be thrown away

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15962 3db68df2-c116-0410-a063-a993310a9797
Fix mirages not flushed properly, introduced in r15956.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15963 3db68df2-c116-0410-a063-a993310a9797
Fixes build errors on Windows introduced in r15961 and r15960.


git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15964 3db68df2-c116-0410-a063-a993310a9797
Automated build.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15965 3db68df2-c116-0410-a063-a993310a9797
Amend the "Reveal All" behavior by always hiding mirages.

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