Stick with names the PHP uses.
Add support to use scope in URL and use init and refresh functions like Find My iPhone.
Don't need update_device_list() since the constructor now calls init_client(), which calls refresh_client().