More work on progress scheduler.

Ugly. Will need to refactor. But it's working.
Introduced redis client wrapper.

No need anymore to mess with 'crashing' functions in business code.