Add cog button and menu.
Re-add button for recomputing history.
Fix bug: incorrect computation for whether list is full.
Fix bug: exception thrown when accessing data.historyVisits[categoryObj.name], data not available yet.
Fix bug: stats don't get reset on back button.