Clean up backend code (per lint and style guide).

Add docstrings to backend code.

Uncomment access control code for getSurveys.