Refactored where the rest calls are made.
Merge branch 'master' of https://github.com/redhat-consulting/jbpm-ee
Added in rest calls.