add filtering handling to base report and base template

@jgeskens and @nielsvanoch can you please review?
Sorry, I can't do this because then we would have to generate fields and instantiate form in one step- and this is something that I want to avoid