Groundwork for path-tracing

Added some classes and methods to prepare for tracing coloured paths
between cells.