Bug fixes for CocosBuilderReader and cocos2d-x cleanup. Adding features to TestJavascript

1. Fixing cleanup of ScriptingCore and CCApplication resulting in proper shutdown of cocos2d-x on CCDirector->end()
2. Added device specific tests to TestJavascript Android
3. Fixing CocosBuilderReader bugs including:
    * Playing nested animations
    * Custom TTF fonts in iOS
    * Incorrect insets for Scale9Sprite