Enabling the test code to run on mono.

The test cannot run automatically yet as the deployment helper is not setup.
HttpClient on mono has a few issues while handling 302 redirects or deleting cookies from cookie container. With work arounds on mono the above test code works both on .net on mono. I will file a bug in mono repository for the HttpClient issues. Meanwhile this modified test code will help partial automation on mono.
I also removed the leading / from all the urls as HttpClient on mono does not understand them though .net allows it.

This certainly needs more cleanup and refactoring. This is a first step towards it.