added deferredFactory for EyesPromiseFactory

EyesPromiseFactory.setPromiseHandler renamed to “setFactoryMethods” and
now accepts deferredFactory in addition to promiseFactory