Override app and secret on a per-request basis

Needed by the legacy wrapper.

If you accept, please also update rubygem