Refactor index and firmware file downloads into their own class.