ASABASE-313 - Modify Onboarding persistence

ASABASE-313 - Modify Onboarding persistence to include last error
              code and exclude last state

1) AJOBS_Info was modified to contain only: ssid, pc, authType

2) The lastErrorCode is now persisted separately independent of the
   AJOBS_Info

3) Revised DoConnectWiFi() to:
   a) Record entry Onboarding state in prevObState.
   b) Set the global AJOBState variable g_obState to
      AJOBS_STATE_CONFIGURED_ERROR when the failures are fatal
      (AJ_ERR_SECURITY, AJ_ERR_DRIVER, AJ_ERR_UNKNOWN) and
      AJOBS_STATE_CONFIGURED_RETRY when the failures are transient
      (AJ_ERR_CONNECT, AJ_ERR_DHCP)
   c) Persist AJOBS_State if the fields lastErrorCode or authType have
      been modified.

4) Initialise global state and error code variables from retrieved
   info on call to AJOBS_Start().
   a) If SSID is set and error code is
      AJOBS_STATE_LAST_ERROR_VALIDATED,
      AJOBS_STATE_LAST_ERROR_UNREACHABLE or
      AJOBS_STATE_LAST_ERROR_ERROR_MESSAGE then set state to
      AJOBS_STATE_CONFIGURED_NOT_VALIDATED.
   b) If SSID is set and error code is
      AJOBS_STATE_LAST_ERROR_UNSUPPORTED_PROTOCOL or
      AJOBS_STATE_LAST_ERROR_UNAUTHORIZED then set state to
      AJOBS_STATE_CONFIGURED_ERROR.
   c) Otherwise set state to AJOBS_STATE_NOT_CONFIGURED.
   Note that the error message is NOT persisted.

5) Revised AJOBS_ControllerAPI.h and its implementation in
   OnboardingManager.c

Change-Id: I11b90db52b1915e61ce24aa196edd506a2e6becf
Signed-off-by: Eyal Ilsar <eyali@qce.qualcomm.com>
Merge "ASABASE-313 - Modify Onboarding persistence"