Make ListenableFuture lambda compliant

Make it possible to use a ListenableFuture with Java 8
lambdas, with a syntax like
listenableFuture.onSuccess(() -> ...).onFailure(() -> ...);

Issue: SPR-11820