code: Rename parameters of CodeHistoryApp.
code/history: Fix and adjust exception handlings.