[FIXED JENKINS-22796] Added REST API support for root and job actions.

Added REST API support for the root and job actions of jobConfigHistory by exporting the getConfigs/getJobConfigs methods of their respective classes and adding a getApi() method call.