Pause video/audio expandos on close

Also re-plays them on open if they were playing before. Closes #689
Fix up stylistic choices
Merge pull request #705 from SirCmpwn/pause-expandos

Pause video/audio expandos on close