Make stability checkbox sticky

When the "stable only" checkbox is unchecked, this rewrites all link `href` to include the `?unstable=true` query string.  In browsers that support it, the current location is also updated with the same.  When the checkbox is checked the query string is removed.

Fixes #2694.