Update MockStatsdClient with new API.
Tidy up URL parsing, add tests.