Refactor Oulu to use urls in data instead of ids to access API

id != url after we enable changing flow URLs. Here I try to decouple flow ids and urls so that Oulu doesn't break if flow id is different from path in URL.