Fixed get_server_baseurl, simplified create_job.

Added unit tests