Add failed as callback
Remove unnecessary before_filter
Simplify configuration
Specify dependency on activesupport