Refactoring XJobAPI methods
Refactoring XJobAPI methods

1. What is the problem?
All the methods of XJobAPI is sharing common functionality which
can be simplify it.

2. What is the solution for the problem?
Refactoring those methods as much as possible

3. What the features need to be implemented to the Tricircle to
   realize the solution?
None

TrivialFix

Change-Id: I3967ae66d744ad4b00f283306c911657c5735dae

stackforge/tricircle,stackforge/tricircle,openstack/tricircle,openstack/tricircle