Buncha changes for Chromecast support.