Refactor CSS transform code with a new class extending L.Marker, L.RotatableMarker, and two new static methods, L.DomUtil.setTransform and L.DomUtil.getRotateString.