Because of really huge amount of modifications here I've probably missed some minor stuff. I doubt if it's still compatible with gcc - some changes should be reapplied.
* added CConsoleHandler to interact with user (it should be testing - only, the real console should be as in h3)
pathfinder MAY work now, but it isn't tested