libweave: Update "base" state on config change
This fixes initial config load when state defaults does not match
actual device config.
Also allow to have consistent state if related option was change by
buy something else that base.updateBaseConfiguration.
Moved firmwareVersion into BaseApiHandler for consistency.
BaseApiHandler store DeviceRegistrationInfo as plain pointer as former
should not out-live latter.
BUG=brillo:810
TEST='FEATURES=test emerge-gizmo buffet'
Change-Id: Idf43c90116cc5500b09d2d1295a5d082f343db8c
Reviewed-on: https://chromium-review.googlesource.com/290201
Reviewed-by: Alex Vakulenko <avakulenko@chromium.org>
Commit-Queue: Vitaly Buka <vitalybuka@chromium.org>
Trybot-Ready: Vitaly Buka <vitalybuka@chromium.org>
Tested-by: Vitaly Buka <vitalybuka@chromium.org>
7 files changed