Using Software Defined Relationships to Build the Internet of Things