Better ASS parsing, part 2

Ported old code to new API
Removed unused code
Some bugfixes