Added tests for Download module. Major refactor on Download module
Multiple bugfixes. Works on prod but fail on test. request.head doesn't seems to respond.