Initial commit of restserver.py.  This is an HTTP server that uses REST methods to receive requests.  All I/O outside of the HTTP headers is in JSON
format.

Note that this code is NOT GPL'd and is NOT in the public domain.  Read the conditions of use at the head of the file.