receiver: change disconnect condition
receiver: remove global dependency
remove fat comma
check undefined
change to use a MediaManager
update build script
receiver: send MediaUpdate event to sender