add support for image upgrade
- add loader.bin for upgrade, so we don't need to get from ftp
- add sudo in flash.sh
- auto reset device after kernel upgrade

Change-Id: I6ed58a7446b2414e76febe60ac0c6a498c241892