Allow the apiEndPoint to be configurable

I have added the possibility to configure the ApiEndPoint like what we have with the raygun4net client.