[JENKINS-18224] TransientActionFactory

[JENKINS-18224](https://issues.jenkins-ci.org/browse/JENKINS-18224). The necessity to introduce a new `getAllActions` method makes it a bit messy, but this seemed to be the only way to do it compatibly.