Fix a bunch of things.

Fix error handling in postdata.py
Tweak JSON packet in motion.py
Change JSON in example_settings.py to valid JSON by replacing single
quotes with double quotes.
Tweak threshold. (This should go into the settings file at some point.)