removed old hash syntax style; before_filter => before_action, after_filter => after_action

I changed all hashes to the new hash syntax and renamed before_filter to before_action and after_filter to after_action.