Little adjustments
Fix heaps of bugs and start doing real tests

To make TestNotebookManager work you need to comment out all the calls
to self.makedir and os.mkdir