Move after playback commands to options.

- Add an option to close and restore logo.

Fixes #325
Refactor after playback events handling.

- Playback loop now have precedence over selected action.
SubPic queue: Clear queue only when it's needed.

Time can decrease even within the same video frame and
it make no sense to purge whole queue, if we still can reuse buffered
subpic.