Fix flash source chooser

A demo of the original problem, as referenced in #1190  is available here: 
http://dajulia3.github.io/mediaelement/

This PR's first commit also gets most of the tests passing,
while the second commit adds the fix and a corresponding test.

Apologies for the diff of the VideoElement.as file, but it was a big pain not to change whitespace.