AGS: Implement DynamicArray and the two associated script opcodes.

(Managed objects are not yet supported.)

Based on work by rofl0r <retnyg@gmx.net>.
AGS: Implement two more math functions.
AGS: Various improvements to audio support/scripting.
AGS: add score event

with this change, duty and beyond is almost completely playable.
only other thing missing so far is Object::get_View
AGS: Misc signedness fixes and sanity checks.
AGS: implement DCMD_SETGLOBALINT handling
AGS: implement Object::StopMoving
AGS: Implement IsKeyPressed.
AGS: refactor some GUI code

i refactored a bit and made a common class for GuiObjects
that deal with texts, fonts etc, in order to save from
duplicated code.
AGS: Implement some more audio-related bits.
AGS: Fix warnings about bad casts dropping const.
AGS: Fix resolveHardcodedColor for >16bpp modes.
AGS: Allow integers to be passed for %f formatting (sigh).
AGS: Improve wrapFilename to remove some environment variables.
AGS: Misc font/overlay fixes, dialog fixes.