This tries to encode all the decision making which goes on when working out whether to backport a commit from the unstable to stable branch. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>