Update example daemons to use the new component/trait APIs Using AddStateDefinitionsFromJson/AddComponent instead of old and deprecated AddCommandDefinitions.../AddStateDefinitions... methods. BUG: 26070118, 25917541 Change-Id: I1f264c737cc19a577a0026e6d6212d63bdc480cf Reviewed-on: https://weave-review.googlesource.com/1802 Reviewed-by: Alex Vakulenko <avakulenko@google.com>