Firmware upgrade

Added a system method allowing to upgrade the device firmware.
Such method is based on the file feature.
Tested both on emulated and on real devices.