Added some structures for further api development. Not used yet, neither finished. Next step: Change Canvas to use LinePlot.