workflows: better widget and filtering

* Changes the way we do the filtering.

* Reduces number of requests.

* Fixes workflows problem with persistent data.

* Fixes approval widget.

Signed-off-by: Guillaume Lastecoueres <guillaume.lastecoueres@cern.ch>