Refactor the log folder and test the logs view

This follows the lines of #240 and #233 where actions were extracted from the view in order to make them testable, this time with the logs folder.

The second commit is adding integration tests to the logs view, checking that we're always initializing the related objects (which are united tested by themselves).