New option for redirect plugin: Collect URLs

This pull request makes the collection of URLs optionally. This is useful to avoid unnecessary entries in the database.