Add ResponseGenerator

1. extract ResultSet processing code
2. Introduce config variable for mode
3. Intorduce subclasses for modes