Ring middleware for parsing parameters and emitting responses in JSON or other formats