move common code of reports_controller and timelog_controller into a common helper
Merge pull request #665 from opf/feature/refactor_timelog_and_reports_controller

move common code of reports_controller and timelog_controller into a common helper