Index the survey ID for responses

Also, leave whitespace out of the JSON output.
Fix a comment
Merge pull request #1 from LocalData/perf

Index the survey ID for responses and condense JSON output