Split notebook functions from Window file.

I hace created a new Notebook class with the
functions related to deal with tabs. Now the window
can have a widget different from a notebook which could
be usefull to redesign settings.