Project tree stability update

Minor fixes and exception handling. Some speedups, and finally added
detection on deletion and renaming.