exec_installer: Check if image format is suitable for current boot reason

ONIE updater image has 'ONIE-UPDATER-COOKIE' which is used to
distinguish from NOS installer image.  Updater shall run in either
'update', 'embed', or 'rescue' mode.  Installer shall run in either
'install' or 'rescue' mode.  And both kinds of image shall not run
in uninstall mode.

Signed-off-by: Curt Brune <curt@cumulusnetworks.com>
Disallow install_url or update_url to run at improper situation

install_url (onie-nos-install) is allowed to execute at the situation
with boot reason: install or rescue.  update_url (onie-self-update)
is allowed to execute at the situation with boot reason: update, embed,
or resuce.

Signed-off-by: Curt Brune <curt@cumulusnetworks.com>
Disallow uninstaller to run at improper situation

uninstaller (onie-uninstaller) is only allowed to execute at the
situation with boot reason: uninstall or rescue.

Signed-off-by: Curt Brune <curt@cumulusnetworks.com>
Accton powerpc platforms: Adjust u-boot boot delay to 10secs

The platforms are including:
- AS5710_54X
- AS6700_32X
- AS6701_32X
- AS6710_32X
- AS7700_32X

u-boot boot delay in these platforms were not consistent in the
past.  We decided to follow ONIE's original design recently.  So
that these boot delay patches in machines are removed now.

Signed-off-by: Curt Brune <curt@cumulusnetworks.com>