Adding Firmware upgrade feauture

added function to upgrade firmware and upgrade controlpanel