Layer model - Adding layers on mainwindow

layer initialization is still a little bit buggy, but I might wait for
@yjacolin work on the interface. Need to init the fields of the Layer
class (or it leads to several unothaurized memory access).

But clicking on "add layer" is now working (well, almost ...)