api_key and error handling changes

- pass api_key to server
- show the error message gotten from server
- use job_status_url and error_message key