3.x 4.x backport
This is companion merge request for !240 (merged). This one is for Turris OS 3.x and backports changes in API in supervisor.
Note: Target branch is going to be for-turris-3.x. Current target branch is set to just limit changes to those that are part of this MR. This is build on top of another MR.
Edited by Karel Koci