Add a JUST_CHECK=1 option which just reports if a firmware update is needed

Exit code which will be 0 if up to date, and 2 if a firmware update would have occurred.
Also the new commits will be printed to stdout
Skip printing base commit message when JUST_CHECK=1
Merge remote-tracking branch 'upstream/master'