ld4sensors refactored to comply to the openiot directives, plus supporting client-defined new types