added support for apiUrl setup
handle error when job creation failed
synched dist
Merge pull request #6 from olivier-squid/master

added support for apiUrl setup