A Context-Aware Architecture for QoS and Transcoding Management of Multimedia Streams in Smart Homes