Merge pull request #169 from RickEyre/assert-cuecount-pl

Pass in expected cue count to loadVtt for all payload tests.
Add finish_parsing function.

I've added the finish_parsing function. Based on these changes the calling application
will now call this function when the stream has come to an end and the parser should
do it's final operations.