added callbacks that the flash-player.js file in divine-player can use to fire html5 equivalent events
added "ended" and "play"
cleaned up event firing
removed experiment cruft.
cast streamTime as Number. squash nested if statement.
remove unused var.
add resize handler in the flash file