store choices for recent changes and diff views in cookie

See FS#2438 and FS#2700.