Added support for activities. Added support for :response_format configuration value.