add api_url() to the agent model to limit duplicated logic elsewhere
Merge pull request #134 from pyfarm/agent_model_url

add api_url() to the agent model