Send messages in XML or JSON
Push up JobState creation
Refactor