issue #3069:Modify layer lua register and add some compatible lua binding functions

By the way,modify some codes of PerformanceSpriteTest.cpp file for c++11 style.