FW-277. FW-278. FW-279. FW-280. Fix.

firmware cleanup and dynamic app compilation