Additional formatting for values in the show commands.
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