Improve scripting.
Refactor Director, replace static simulationState/simulationRules with _battleContext.
Rearrange directory structure.
Add #if TARGET_OS_IPHONE in image.cpp.