Make plugin compatible for Mojolicious 4.0

... as some methods were removed/renamed.