Added command to set the thermostat mode.
Added debug option.
Added structure infomation to show command.
Thanks jsquyres for sending the fix.
Merge branch 'master' of git://github.com/RandyLevensalor/pynest

Fixed some minor conflicts in the merge.
Refactored HTTP headers to be defined once in self.header.
Refactored put calls to one common method handle_put.
For each context [device,shared,structure] this is a helper function.
The constants have been moved to these helper functions.
Refactored put requests.
Added check for fan values.
Valid values are on or auto
Added check for mode.
Valid modes are 'cool', 'heat'  or 'range'
Validate the temperature is a valid float between 50 and 90
Validate that away command has option of either away or here
Update nest.py

Fixed a typo and added some more detail about how to get the json library working when it fails. (My server is on Centos 5.2 and the python available over yum is 2.4 which did not have a json library built in.)
Merge pull request #1 from infernocloud/master

Pulling in error message.
Merge branch 'master' of git://github.com/RandyLevensalor/pynest

Fixed conflicts: nest.py
Merge branch 'master' of github.com:lrosenstein/pynest
Gah; somehow this duplicate delete likes to keep coming back (must
have mucked up that last merge...).  Remove it.  For good.  Really.
Add the ability for nest.py to be able to enable and disable auto-away
mode (which is different than setting "home" or "away").