Refactored bluetooth layer, added better connection handling, added download and progress bar, add hash check