Parameterize consent document and badge url.

This closes #1835