clear() by directly deleteing all items
Document, TikzDocument: better clear() approach

Instead of using virtual functions, we're now using a
signal and a non-virtual slot to indicate that the
Document's contents is about to be cleared. This way,
the clear routines can be reused in both destructors,
since the clear-functions are now non-virtual.