More cuetext tests.
Merge pull request #4 from RickEyre/add-cuetext-span-tests

More cuetext tests.
Add cue setting tests.
Merge pull request #5 from RickEyre/cue-setting-tests

Add cue setting tests.
Fix file name for ruby vtt test in runtests.js
Fix timestamp-span test to expect the correct # of cues.
Test that we deal with garbage WEBVTT signatures.

I've added a new condition to the flush function so that we don't
incorrectly try to synthesize the end of a WEBVTT signature.
Merge pull request #7 from RickEyre/garbage-webvtt

Test that we deal with garbage WEBVTT signatures.
Clean up comments and state ordering.
Update references to the spec to the lastest editor's draft.
parse cue settings
parse meta headers, parse regions, and factor out parsing of settings
make it more explicit in what cases we have to flush a currently pending cue
introduce onpartialcue, only invoke oncue on fully parsed cues
report regions to the consumer
fix README
add support for constructing a DOM Tree for cues
add a fake window constructor to the test harness
oncue is only called for fully parsed nodes now, so no need to worry about the .seen flag
add a test for DOM Tree construction