Made objects for IndexManager and Downloader to make it all more readable and encapsulated.