reader: add Configure()

this makes it easy to use a JSON object to configure all options of the reader