A cloud version of a generic API layer on top of any Internet of Things system