Fixed get_server_baseurl, simplified create_job.

Added unit tests
Merge pull request #100 from lechat/unit_tests

Fixed get_server_baseurl, simplified create_job.