- added list_device_states() function/method, as suggested by @hoerter
- implemented fix to prevent cURL from sending an
Expect: 100-continue
header with each POST request - implemented a callback function with the CURLOPT_HEADERFUNCTION option to process the response headers after each request and extract the Cookie contents
- general cleanup