Adding thread-safe data manager

Mostly intended for global last-folder-visited functionality.
First stab at last-folder-visited logic