cfg: allow attribute access

It is tedious to bracket and quote config names.  This patch allows us to
access config values with attributes.

Change-Id: Ia5cec9a3438c808460da6a56830464ac50cfffb9
Merge "cfg: allow attribute access"