First attempt with download manager, refactoring, minfixes. Closes #1 #2 #3