Refactoring to make extension easier.

Much less weird OOP needed. Rendering is separate from data objects. cocos2d-iphone and cocos2d-x support for multi page atlases.
Refactoring for multi page atlas support.