bug fixes, add auto flash,use download manager and add ota updater for the app itself