store choices for recent changes and diff views in cookie

See FS#2438 and FS#2700. This is not working yet and a start for @michitux to work on.