Updated client to support API version 2.

I wanted to use version 2 of the API, so I modified the Ruby client to be compatible with the new version. It's not backwards compatible, but this may be a helpful starting point.

Alternatively, this fork should be fine for anyone wanting to use version 2 of the API.