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.
Since you do not use these methods inside of the controller (you do not define any action explicitly), you should move them into a real helper module.