Start integration of battery/devicestatus with the community repo

I'll use @m2oore's commits as the base and then add support for the rest api