[DO NOT MERGE] Experiment with the Device Capabilities API and Internal Extensions

This is branch experimenting the best way of having Device Capabilities API ported to the Internal Extensions. Feedback is encouraged and very welcome. I made a PR so we can try the branch on the bots.