Added support for processing activerecord records. Added support for passing response handling to block.