Refactor Flash plugin loading detection

Previous code polled in a loop and timed out aggressively; this
caused initial settings of things like the source media to fail to
apply, causing the entire player to fail.

Switched to use a callback, which is more robust.