865 introduce histories controller

Fixes second part of #865.
Because I already implemented most of it several weeks ago, the HistoryController is already integrated into the routes.
Better to put `attr_reader` at the top and make them protected (if necessary) with: `protected :commit_id, :page, :offset`.