Moved activity record creation from log controller to model
Grouped common actions into before_filters