MediaControls refactored and modified slightly

Events have been moved to the `sewi.constants` global variable.
VideoResourceViewer and AudioResourceViewer have been updated to use the constants as events instead.