Refactor downloader and added EOD functionality.
Still need to add setting yesterdays date in EOD mode.