Porting power system into cocos builder framework.

Signed-off-by: Matt Cleveland <mgcleveland@gmail.com>