Refactor replay as plugin

This pull request fixes all problems with `FlxReplay` after it was ported to the new plugin architecture.