Registry functions added
Thread management, function moving, cleaning

-Cleaning up variables.
-Moved file hashing functions into separate file for main window.
Revert "Thread management, function moving, cleaning"

This reverts commit 561983992933c0f9357041826fd1b3dc916dffd8.
Revert "Revert "Thread management, function moving, cleaning""

This reverts commit af5bc364c1b818c64cafe60b3a62cde8e9ae8132.