Add restoresession command to pentadactyl
Add history function.