Turn on persistent undo and add undotree