Add extend method for cc object

I think we should add `cc.extend` method which help developer easily merge attributes of object to another object without using extra library like underscore
Merge pull request #2199 from MQuy/patch-1

Add extend method for cc object