cpp: move more code into device base class
cpp: consolidate attribute access implementations
cpp: constructor implementation consolidation
cpp: fixed several issues; demo improvement
cpp: completed i2c sensor members