Add Mode command to configuration language

* Added Mode command to control updater's special run modes from
  configuration
* Package scripts now have in environment variable PKG_UPGRADE signaling
  if it is new installation or just upgrade.