Minor fixes

- Fixing automatic JSON encoding in `respond()`
- Fixing a reference error that broke the reverse proxy