adds before filters. Finishes #2
Merge branch 'before-action'