Fixed event dispatching (and a few other tidbits).

The event dispatching wasn't very stable. It's tested now and works a whole lot better… in that it works. Also added addScriptTag() to utils. I added callback responses to getVideo(), and I'm now checking for jQuery before assigning it (not that it matters, I think).

Signed-off-by: Brandon Aaskov <aaskov@gmail.com>
Fixed up the README.
Broke out the unit tests into their own modules - that tests.js file was getting too huge.
Going to refactor utils.addScriptTag() into something more useful. Be right back...
Refactored addScriptTag() to addToHead() since it's more general purpose and more useful.
Added a tagInHead() method to easily check to see if a tag has been added. Tests included.
Working on iframe stuff...
Updated addToHead()

I realized that addToHead() should just take care of checking if the tag exists already. I can't think of a single scenario where you'd want to add something to the head again that already existed.

Signed-off-by: Brandon Aaskov <aaskov@gmail.com>
Added Table of Contents

Signed-off-by: Brandon Aaskov <aaskov@gmail.com>
Working on the iframe stuff.
Got everything working how it should... except the PDK is broken.
More documentation and removing the ability to access _currentVideo.
Updated the docs.
Added IE7 message and working on iframe updates

Since we support IE8 and higher, we should tell IE7 users that they're using an unsupported browser as well. Also working on iframe updates, but that's in a broken state right now.

Signed-off-by: Brandon Aaskov <aaskov@gmail.com>
Got all the tests fixed. Time to actually do an integration test.
Adding the control switch (which I dumbly forgot about), but switching computers so I'm committing mid-state.
Removed getVideo() since it was useless - literally.
Bumped up the version number since it was long past due (will tag when I finish this iframe stuff and roll into master). This _should_ be working but it's been a pain in the butt so far - at least I'm getting a controller back and it appears to be the correct one.
Updated missing section of README for injectIframePlayer().
It seems like everything is working as it should be, and bind() isn't being called until the pdk is ready. That said, I still can't control the iframe.