use install.sh in bootloader makefile
simplify ifdef logic in bootloader.h
refactor ReceiveFw()
fix ReceiveFw() to keep the API promise to return 0 only on success