A novel JXTA-based architecture for implementing heterogenous Networks of Things