Version control the API url

I don't think there are many people using the API & if there are it would just be an easy change in the URL.

I'm doing some changes to the main API , taking it away from XML to get it up to standard using cURL & json.