Add initial support for sensor metadata files and follow the same registration
flow we use for actions and rules (consistency ftw).

Also update all the affected code and remove now unused code.