Fetching flow executions

Few functions for fetching flow executions.
If you use `split(':', 1)`, you can simplify the branches below (also, the third one can't happen currently).