fixed the error 500 issue- the test json in the code wasn't actually valid json, so it was unable to be processed by json.dumps. I am now passing valid json in and out, looks ok. Next will add some real functionality
ok, added the current state as the data parameter in the ajax request (had to call stringify on it first). looks like it is working. will add the actual handlers for at least one state tomorrow