added support for default responds
integrated configuration into application_controller