Using settable future to wait for completion. The value of settable futu...

...re is set on scheduled task callback completion. Fixes #40
Is there any particular reason this is performed in yet another callback? Why not move it to onSuccess/onFailure of the main callback, and use this future just for blocking? I think it would simplify the code. Also, we need to add a comment why settableFuture is needed.