Exception handling in case of uploading duplicate jobs,
Exception handling while getting job execution history in case of no instance,
modifications in test cases
Merge branch 'dev/batch' of http://review.motechproject.org/modules into dev/batch