supervisor: backport autorun configuration API

This is backport of autorun configuration API from 4.x.
6 jobs for 3.x-4.x-backport in 5 minutes and 39 seconds (queued for 45 seconds)
Status Job ID Name Coverage
  Test
passed #223140
cppcheck

00:00:50

passed #223141
luacheck

00:00:51

passed #223138
system-tests

00:02:26

passed #223139
system-valgrind-tests

00:04:51

passed #223136
unit-tests

00:02:07

passed #223137
unit-valgrind-tests

00:04:24