Initialize media variable after Cast init.

I've found in my Chrome that chrome.cast is not available from the start, so this fix delays the initialization of the 'media' variable that needs components from chrome.cast until it's available. Related to issue #3.