[DeviceCapabilities] Add device capabilities API

This commit implements the framework of device capabilities
and parts of its API. Currently, we only implement part for mobile
which include cpu, display, memory and storage.