use localmedia

I think this should do it. @legastero can you take a look?

The only user-visible change is that localScreenRemoved in index.html was renamed to localScreenStopped.