Data Manager refactor

Here it is, finally.
Give it a good testing, espcially on Windows and Mac!