before filter features

Merge before_filters feature