Adds login support and major refactors and better download manager