Enable factory reset from firmware

Need to test. Don't have JTAG programmer with me right now.

Binaries in this PR are built with corresponding code in https://github.com/spark/core-common-lib/pull/21