Add init function to the SkeletonAnimation class.

This pull request related to the issue of **cocos2d-js** branch and this pull request: https://github.com/cocos2d/cocos2d-js/pull/1132
Maybe this init function must be in ```SkeletonRenderer``` class because code of this function I've take from ```SkeletonRenderer``` constructor so it's duplicate?