[On-device adaptive brightness] Extend model saving and allow model reset.

This contains the following changes
1. In addition to saving a trained personal curve, we also save global curve
and model iteration count when a new curve is saved.
2. Saved model is discarded if initial global curve specified from config or
finch is different from the saved global curve.
3. No longer need to fetch finch params "auto_brightness_als_horizon" and
"model_als_horizon_seconds" from adapter.cc or modeller_impl.cc because
finch-flag checking is done by model_config_loader.cc

Bug: 881215
Change-Id: If6f7718948ae675909eb18ab1b216b7d83be62b0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1609746
Reviewed-by: Michael Martis <martis@chromium.org>
Commit-Queue: Jia Meng <jiameng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#661293}
13 files changed