Implementation of Promises/A+ spec in Perl for AnyEvent event loop