chore(client): Wrap the ajax request in the metrics module.

@zaach - I've wrapped the ajax call, and use the statusText as the error (that's what jQuery does). Something about that doesn't seem quite right. Any suggestions?