Smarter way of handling playlist indices, fixes #353
Let other finish callbacks fire before advancing track, fixes #391
Remove is-finished class before advancing to next item, refs #391

This is a workaround to avoid a timing issue
Merge pull request #401 from flowplayer/bug/353

Smarter way of handling playlist indices, fixes #353