Bunch of changes

- WindowsAzure#1230
- WindowsAzure#1050
- Refactored diagnostics code to use `HttpClient` instead of WCF channels.