Make plugin compatible for Mojolicious 4.0

... some methods were removed/renamed.