Add support for deferreds to memoize_method decorator