Implement controller ```beforeAction``` and ```afterAction``` methods in place of ```all```