Resource Oriented Architecture for Internet of Things