Added masks for WebGL

Currently only the rectangle and circle masks are implemented. Custom
mask will follow soon and Graphics masks ... later :)