Move functionality to Workspace

Moving everything related to the drawing area where the graph will be
created and displayed to a class Workspace. Anything else ui-related can
go in mainwindow, but otherwise it will become a mess.