Fix compile issue after the prev refactoring
Refactored firmware code
Support device info service.
Refactored firmware update code