Engine: Fixed reading of CharacterInfo.
Engine: Fixed game taking very long to skip a cutscene.
Merge branch 'refactory' of https://github.com/adventuregamestudio/ags into refactory
Bigendian: Fixed ogg playback.
Common: Simplified typedef for __block.
Engine: Simplified libc string function supplements for non-Windows platforms.
Common: Removed unnecessary defines from compress.cpp.
Engine: Removed checks for BSD_VERSION.
Simplified platform defines.
Engine: Added thread and mutex class.
Windows: Updated solution.
Engine: More define replacements and cleanup.
PSP: Fixed crash in the thread class.
Engine: Removed route finder copy protection.
iOS: Cleaned xcode project.
Engine: Fixed crash on thread destruction.
Engine: Multithreaded audio processing should now be fully stable:
- Destruction of audio channels has been moved into the SOUNDCLIP::poll() methods.
- ALMP3 function calls are safeguarded with a mutex because they are not reentrant.
- Soundcache funtions are safeguarded with a mutex.
- AGSWin32::Delay() does not check for engine exit anymore because this can deadlock the audio thread. On other platforms there never has been such a check.
Common: Fixed reading of split 2.x game data files.
More details on this commit can be found on the forum thread: http://www.adventuregamestudio.co.uk/yabb/index.php?topic=46378.0

Features-

- Added folders for characrers, dialogs, inventory items, guis, rooms, scripts and views.
- Added new menu items for all folders to move up/down
- Added the ability to drag/drop files to be before other files.
- Added highlights for drag&drop and auto-expand folders on hover during drag&drop.
- Script and header files are now combined into one and can be expanded/collapsed, similar to room settings & script.
- Added a menu item to find all usages for characters, dialogs, views,inventory items and global variables.
- Added a menu item for almost all document tabs, to navigate to their node on the project tree
- Added "Goto line" dialog from script editor via shortcut Ctrl+G (and changed existing shortcuts to open global script & header to Ctrl+Shift+G/H).
- Added keyboard shortcut (Ctrl+M) to switch between header and source.

Mono Support (Ongoing process)-

- Replaced in tons of places the hard-coded "\" used as a directory separator with the directory separator of the OS,
  so that it'll also work on Linux machines.
- Switched the code that detects Shift & Ctrl keyboard presses with a managed solution, that should be supported
  by MONO- this is used when selecting colors in the palette, for example.
- Switched the code that detects when the Room Designer is focused (used when pressing the up/down arrows to pan
  the working area) to a managed solution, that should be supported by MONO.
- Switched the code that copies arrays in memory to a managed solution (used when loading a sprite from file).
- Partially disabled some features only when running with Mono, since I couldn't see a way to code them without the
  Win API:
   - Breaking in debug will not automatically set the editor to the foreground, the user might have to click on the window
   - Notifying the user on file changes externally if the editor is in focus will not happen. It will happen when
     the window is activated, so I hope it won't be too annoying.

Bug Fixes-

- Fixed backwards compatability issues with plugins due to docking suite changes. Controls are now back to user controls (and not forms) as they once were.
- Fixed "Go-to definition" on global variables in script editor didn't do anything. It will now open the global variables editor and select the global variable.
- Fixed "window can disappear" bug due to a bug in the saving/loading process of the docking suite layout.
- Fixed one extra "x" buttons on find results, callstack and output panels.

git-svn-id: https://svn.bigbluecup.com:7743/svn/ags/branches/dev/3.2.2@77 198b9858-5f2a-7c4e-a477-5b45ff739df7

Conflicts:
	Editor/AGS.Types/PropertyGridExtras/FontTypeConverter.cs
	Editor/AGS.Types/PropertyGridExtras/RoomListTypeConverter.cs
	Editor/AGS.Types/RoomList.cs
	Editor/AGS.Types/Script.cs
	Editor/AGS.Types/UnloadedRoom.cs
	Editor/AGS.Types/ViewFolder.cs

Conflicts were resolved by using the new versions, because there should not have been any real changes in git.
I don't know why the conflicts occured, please check everything.
Merge branch 'main' into refactory