Let's try to move away from this.  I don't want to have knowledge of the wrappers/media types up here.  We should put this code into functions on the wrapper, exposed on it's `prototype._utils` object.  We can land it like this, but let's clean things up so that you get the wrapper to parse the URL, extract the ID or whatever, and give you back an object you can use.