Remove empty gfx/attach.js module
Removed all dojo/_base/array uses and replaced by native ES5 Array functions.
Fixed broken clipping on Canvas (must use context require).
Added .jshintrc + big reformatting and code cleanup according to jshint checking.
Change  _ShapeBase and _SurfaceBase to override the new processConstructorParameters function in Stateful.
dojo/_base/Color -> dcolor/Color, dui/Stateful -> delite/Stateful, other small fixes.
Port 67486ca03ed13a8827171c4dba0f5f77d0bd6f4c from dojo/dojox.