Add trait/component APIs to weaved

Added new Device::AddComponent() method as well as added |component|
parameter to AddCommandHandler, SetStateProperty/SetStateProperties
methods. Added GetComponent() method to Command class.

Marked old APIs (that don't take component name) as deprecated.

Finally, made weaved load trait definitions from /etc/weaved/traits
directory.

BUG: 25917608, 25917704, 25916429, 25917604, 25917426, 25916428
Change-Id: I252f3930d1fda79e41c062d71f008210d2c116a4
10 files changed