Support multiple calls of same command.

Support multiple calls of the same command to allow drawing of polygons. For example:

    el.beginPath();
    el.moveTo(0,0);
    el.lineTo(100,100);
    el.lineTo(100,50);
    el.closePath();
    el.fill();