Adding support for cocos2dx. Documenting memory management for Frames.