Initial support for the hardware tunables framework

Initial support for cmhw. Please test it, but I think it works.