Merge branch 'develop-3.0' of https://github.com/cocos2d/cocos2d-html5 into develop-3.0
Merge pull request #12 from pandamicro/develop

Update 3.0 from develop
Added analytics plugin protocol.
Added Flurry analytics plugin.
Merge pull request #1530 from pandamicro/develop

Fixed #3876: Adjust the calculation result of division in EGLView
Refactor #3878: Add getter setter wrapper function to CCCommon
Refactor #3878: cc.Node refactored with getter setter
Refactor #3878: scale added for cc.Node and setNodeDirty added for setters
Refactor #3878: Refactored HelloWorld using getter/setter
Refactor #3878: Add attar function, ignore setNodeDirty during the function, set once at the end
In addition
    Remove check for setter
    change zOrder to zIndex for fitting in css style
Refactor #3878: Refactor HelloWorld with attr function
Refactor #3878: Use cachedParent chain to make cache dirty
In addition:
    Ignore dirty for already dirty node
Created ProtocolAds.js.
Refactor #3878: Add anchor setter/getter to CCNode
Deep-copy verts in drawPoly for consistency

The WebGL .drawPoly copies the verts parameter in the process of using it internally. I suspect the JSB version does too(?). In any case, I make use of this functionality to optimize a drawing function by always re-using the same set of points, instead of computing a new set each time. This breaks when using the canvas mode. To restore compatibility I propose the canvas version also copies the vertices.

I've also added a drawPoly_ which *doesn't* copy the vertex list - the old behavior - if efficiency is desired. This is parallel to how cc._p re-uses the same point in JSB.

One alternative would be for my code to check whether it's using the canvas version and, if so, to make a copy myself - this is not as neat as the library being consistent.
Refactor #3878: Add @expose Compiler annotation to avoid  attribute compressing
Refactor #3878: Getter/Setter for pos and size in CCNode
Refactor #3878: Refactor position getter/setter in engine Vol.1
Merge pull request #1534 from csaftoiu/patch-1

Deep-copy verts in drawPoly for consistency
Merge pull request #1533 from NatWeiss/add-ads

Created ProtocolAds.js plugin protocol
fixed #2459: Because the interval attribute of DeviceMotionEvent is read-only and different in every browser, The setAccelerometerInterval function is invalid. So we fixed this bug by calculating interval values.