Add support AnyEvent version 5
Merge pull request #1 from Nikolo/master

Add support AnyEvent version 5