Total revamp of vector-based paths

Next up: Matrices and polygons.